pkgname=f2fs-tools pkgver=1.11.0 pkgrel=1 pkgdesc="Tools for Flash-Friendly File System (F2FS)" arch=('x86_64') url='http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/about/' depends=('util-linux') license=('GPL') source=("https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/$pkgname-$pkgver.tar.gz") sha256sums=('b916ac7cda902502cf18de98da94921f71edbab40fb0437d757f0716191c79e3') build() { cd "${pkgname}-${pkgver}" # sg_write_buffer is provided in sg3_utils sed -i '/sg_write_buffer/d' tools/Makefile.am autoreconf -fi ./configure --prefix=/usr --sbindir=/usr/bin make } package() { cd "${pkgname}-${pkgver}" make DESTDIR="${pkgdir}/" sbindir=/usr/bin install }