aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfsprogs/APKBUILD
blob: c018100d4e622cc97a97dc21ef19c4a1a7da7fb5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
pkgver=3.2.4
pkgrel=0
pkgdesc="XFS filesystem utilities"
url="http://oss.sgi.com/projects/xfs/"
arch="all"
license="LGPL"
depends="e2fsprogs"
makedepends="linux-headers e2fsprogs-dev bash"
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-$pkgver.tar.gz
	musl-fixes.patch
	musl-linux-limits.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i -e 's/--best//' Makefile doc/Makefile
}

build() {
	cd "$_builddir"
	export DEBUG=-DNDEBUG
	export OPTIMIZER="$CFLAGS"
	export INSTALL_USER=root
	export INSTALL_GROUP=root

	ac_cv_header_aio_h=yes ac_cv_lib_rt_lio_listio=yes \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sbindir=/sbin \
		--libexecdir=/usr/lib \
		--enable-lib64=no \
		--enable-gettext=no \
		|| return 1

	make SHELL=/bin/bash || return 1
}

package() {
	cd "$_builddir"
	make -j1 DIST_ROOT="$pkgdir" install install-dev install-qa || return 1
}
md5sums="c28db88f058ada506fe0ac6a897a1c42  xfsprogs-3.2.4.tar.gz
fa81f3dcfb5d14bc7109ea3ca4f66b03  musl-fixes.patch
a7a1f812836cb49af45b6de74fa07837  musl-linux-limits.patch"
sha256sums="dde65ead82d3cbfa9b4ded9796b6d22095d7d759a22d41ae6f1a4ec458bb0465  xfsprogs-3.2.4.tar.gz
b62b258a56ba5ffbead385a390541fa34b8b545322ad6984bc5c1bb01d2e0c58  musl-fixes.patch
6d8e49de188fc9932ea488a8945601bf2035b03dfa4c3667bd55689445582696  musl-linux-limits.patch"
sha512sums="fb1ea5beb933b86970cac198fa4e296457f0f5b30bd72fda54452644730277929dee28f11f35a154910e4a19857455ecffdd21b3df456023e0da95e2fd0aa0eb  xfsprogs-3.2.4.tar.gz
1c6936fdee3cebf81a1ef9828cbf28175533dab46b47aead3f4165f725b7a66d1ac214314818f639313ebfef8e0fe245d21bb7f804423f934c2505c493dbce97  musl-fixes.patch
62125c90ff22e52142927d3e1ca8411a757679a304fcf1acf780c692fee1ef8c8d1d4bdbd97dce3e9f6d6678f9640f189fd96400e91c974978f0455966b80c6c  musl-linux-limits.patch"