blob: c954a075c55f50b5edd554f3b9bedef1d13b691e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Paul Oppenheimer <bepvte at gmail.com>
# Contributor: Boohbah <boohbah at gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Christian Hesse <mail at eworm.de>
# Contributor: figue <ffigue at gmail.com>
# Contributor: vinibali <vinibali1 at gmail.com>
pkgname=f2fs-tools-git
pkgver=686.git.9a31cef
pkgrel=1
pkgdesc='Tools for Flash-Friendly File System (F2FS)'
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 <jaegeuk@kernel.org>
source=("$pkgname::git+https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git")
sha256sums=('SKIP')
pkgver() {
cd $srcdir/f2fs-tools-git
no=$(git rev-list --count HEAD)
hash=$(git log | head -n 1 | cut -d ' ' -f 2 | head -c 7)
printf "${no}.git.${hash}"
}
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
}
|