aboutsummaryrefslogtreecommitdiffstats
path: root/main/f2fs-tools/APKBUILD
blob: 53580752bcd42d03929afc6418af7932fb87b979 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=f2fs-tools
pkgver=1.2.0
pkgrel=0
pkgdesc="Tools for Flash-Friendly File System (F2FS)"
url="http://sourceforge.net/projects/f2fs-tools/"
arch="all"
license="GPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev automake autoconf libtool util-linux-dev"
install=""
subpackages="$pkgname-doc"
#source="http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-$pkgver.tar.gz"
source="http://dev.alpinelinux.org/archive/f2fs-tools/f2fs-tools-$pkgver.tar.gz"

_builddir="$srcdir"/f2fs-tools-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize --force && aclocal && autoheader && autoconf \
		&& automake --add-missing
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="d27ad7cd56f6001f7e1d508d85eef195  f2fs-tools-1.2.0.tar.gz"
sha256sums="243361c689d851f70feb0e5c97a93394392dc0629f965bcebda9ca825315f732  f2fs-tools-1.2.0.tar.gz"
sha512sums="f259c354c849e84269a8218ad738b38e8a40ac39be1355d323dab6fdf5d58145759db229cceb51524462aad1ef14d3ee57df4c398bb40b3b5288a1869e5567ab  f2fs-tools-1.2.0.tar.gz"