# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>

pkgname=nilfs-utils
pkgver=2.2.11
pkgrel=1.1
pkgdesc="A log-structured file system supporting continuous snapshotting (userspace utils)"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="http://nilfs.sourceforge.net/"
license=('GPL2' 'LGPL2.1')
backup=('etc/nilfs_cleanerd.conf')
depends=('util-linux')
source=(http://nilfs.sourceforge.net/download/$pkgname-$pkgver.tar.bz2)
sha256sums=('8602897ff0d2c49be9bc76311f0b102088e58b6de4f749009403de06ff2c34cd')

build() {
  cd $pkgname-$pkgver
  sed -i -e 's#root_sbindir=/sbin#root_sbindir=/usr/bin#' configure
  ./configure --sbindir=/usr/bin --with-libmount --build=${CHOST}
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" sbindir=/usr/bin install LDCONFIG=/bin/true
}
