# $Id: PKGBUILD 48336 2009-08-01 14:36:12Z jgc $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>

pkgname=reiserfsprogs
pkgver=3.6.21
pkgrel=2
pkgdesc="Reiserfs utilities"
arch=(i686 x86_64)
url=http://www.kernel.org/pub/linux/utils/fs/reiserfs/README
license=('GPL')
groups=('base')
depends=('util-linux-ng>=2.16')
source=(http://www.kernel.org/pub/linux/utils/fs/reiserfs/reiserfsprogs-${pkgver}.tar.bz2)
md5sums=('0639cefac8f8150536cfa7531c2aa2d2')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --sbindir=/sbin || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
  ln -s reiserfsck "${pkgdir}/sbin/fsck.reiserfs"
  ln -s mkreiserfs "${pkgdir}/sbin/mkfs.reiserfs"
}