aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nilfs-utils/APKBUILD
blob: 0d98a0ed4acafcadbaf2db5222ccb04723a4074e (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
53
54
55
56
57
58
59
60
61
62
63
64
65
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=nilfs-utils
pkgver=2.2.2
pkgrel=0
pkgdesc="Utilities for managing NILFS v2 filesystems"
url="http://nilfs.sourceforge.net"
arch="all"
license="GPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev util-linux-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://nilfs.sourceforge.net/download/nilfs-utils-$pkgver.tar.bz2
	max-input.patch
	rpc-types.patch"

_builddir="$srcdir"/nilfs-utils-$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
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	LDCONFIG=/bin/true \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--without-selinux \
		|| return 1
	sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
		-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
		libtool || return 1
	make || return 1
}

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

md5sums="17033394c30515c41c8ae08f83d1cbbe  nilfs-utils-2.2.2.tar.bz2
502f124b1c6def25dab791b6d56d7bb5  max-input.patch
eeeed9b3e7485b0fb164cbbada47ece7  rpc-types.patch"
sha256sums="14376ff6ca4e286030aa65cf09e224e02ae8aacd1352711e1cc083243c2f51f0  nilfs-utils-2.2.2.tar.bz2
a389724e0b7c020ead9556a6e28ac1f203bae083979ed72c470c23ac25100cf1  max-input.patch
57c6eadb917691deeeec11339d4806a89d3e8b6344c4f4d08d19d3ab60009bfa  rpc-types.patch"
sha512sums="2ac0f1f25472d8900732db9f31e6b824e7e591bf306aa18d8b55c5d93807f4f7ceb65ba7e49540a39c7f285ad63c5f4ab795d34b2a04398d91cd2beb5fc6edce  nilfs-utils-2.2.2.tar.bz2
2561be048bbe3a931d8f39073667c5f1730fb1741dc194cf3d7c89d2d8780985d15b4ac960d03fe7ad5638111ff3c4db248f899623f8fa47558c27791d9f5c53  max-input.patch
6604102ead3ee4cb261cb71b9a1dc46c8e344061724f0a5e8a6d037f6b72ee7f5a983a21f691fbc6a66e441e982b9d727eed9499925b92cebefacd9ec9dd6ea3  rpc-types.patch"