# Maintainer: Paul Oppenheimer # Contributor: Boohbah # Contributor: Tobias Powalowski # Contributor: Christian Hesse # Contributor: figue # Contributor: vinibali pkgname=f2fs-tools-progress-patch-git pkgver=1.14.0.r69.g27bf6c7 pkgrel=1 pkgdesc='Tools for Flash-Friendly File System (F2FS) with progress feedback' arch=('x86_64') url='https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/about/' depends=('util-linux') makedepends=('git') license=('GPL') provides=('f2fs-tools') conflicts=('f2fs-tools') validpgpkeys=('D3452A79D8C2B4EAC656F4224014A87E824850D2') # Jaegeuk Kim source=("$pkgname::git+https://gitlab.lesviallon.fr/aviallon/f2fs-tools.git") sha256sums=('SKIP') pkgver() { cd "$pkgname" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "${pkgname}" # /usr/bin/sg_write_buffer is provided in sg3_utils sed -i '/sg_write_buffer/d' tools/Makefile.am autoreconf -fi } build() { cd "${pkgname}" ./configure \ --prefix=/usr \ --sbindir=/usr/bin make } package() { cd "${pkgname}" make DESTDIR="${pkgdir}/" sbindir=/usr/bin install }