# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=reiserfsprogs
pkgver=3.6.24
pkgrel=0
pkgdesc="Reiserfs Utilities"
url="http://www.namesys.com"
arch=""
license="GPL"
depends=
makedepends="e2fsprogs-dev"
install=
subpackages="$pkgname-doc"
source="https://kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v$pkgver/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

#prepare() {
#	cd "$_builddir"
#	apply patches here
#}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="66787380fb418ff7d88a23e47cda7af6  reiserfsprogs-3.6.24.tar.xz"
sha256sums="7e44fefe557d68a642191428210f3d64d80283b9ad0e45c24130f6ce936b0760  reiserfsprogs-3.6.24.tar.xz"
sha512sums="183cda8c1bef375a9e90b6bfcbbbe7cc901f12890be29551e74950c723b0ae565786be86f69cba2a5d8b2f9014d22f6f3bdf277d666d4b6bea15406cb2803a42  reiserfsprogs-3.6.24.tar.xz"