aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfsprogs/APKBUILD
blob: 37c4a97d40da443dada402a6569560c7e55b2c2a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
pkgver=3.2.2
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
	rm -f "$pkgdir"/usr/lib/*.la "$pkgdir"/lib/*.la
}
md5sums="b6b0db5e3ee71ceba26d0a5accbd0666  xfsprogs-3.2.2.tar.gz
fa81f3dcfb5d14bc7109ea3ca4f66b03  musl-fixes.patch
a7a1f812836cb49af45b6de74fa07837  musl-linux-limits.patch"
sha256sums="1a525ce21dc39d4ad3d775fa3c12c2dd4fb7a85e1e05ddd4530dcf773ed65fab  xfsprogs-3.2.2.tar.gz
b62b258a56ba5ffbead385a390541fa34b8b545322ad6984bc5c1bb01d2e0c58  musl-fixes.patch
6d8e49de188fc9932ea488a8945601bf2035b03dfa4c3667bd55689445582696  musl-linux-limits.patch"
sha512sums="6316ce6da87bc3d70c1a887b7c5558b594fa6960105d6a51ad0e8072d5533444f69da174f370907738a15bd50f785f715f71947de916940daf0df2845f4a700e  xfsprogs-3.2.2.tar.gz
1c6936fdee3cebf81a1ef9828cbf28175533dab46b47aead3f4165f725b7a66d1ac214314818f639313ebfef8e0fe245d21bb7f804423f934c2505c493dbce97  musl-fixes.patch
62125c90ff22e52142927d3e1ca8411a757679a304fcf1acf780c692fee1ef8c8d1d4bdbd97dce3e9f6d6678f9640f189fd96400e91c974978f0455966b80c6c  musl-linux-limits.patch"