blob: 870ac85a8a39ea89cebc792434678e3d5b93ec7a (
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.3
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="9f383e36682709e62b12c125e5d8b895 xfsprogs-3.2.3.tar.gz
fa81f3dcfb5d14bc7109ea3ca4f66b03 musl-fixes.patch
a7a1f812836cb49af45b6de74fa07837 musl-linux-limits.patch"
sha256sums="7a5124a880997939551b519610a2e54bd4cd0b0adfd563ce3f4de30827109ac9 xfsprogs-3.2.3.tar.gz
b62b258a56ba5ffbead385a390541fa34b8b545322ad6984bc5c1bb01d2e0c58 musl-fixes.patch
6d8e49de188fc9932ea488a8945601bf2035b03dfa4c3667bd55689445582696 musl-linux-limits.patch"
sha512sums="8f0a95624ccbc71aa6911b62ee5a1cfc56795a581eb746e1bbef8a6385633d9dc15c913a4fd73b1e46c54820a3d36914045e603ef18c506666442b8a2def0a3b xfsprogs-3.2.3.tar.gz
1c6936fdee3cebf81a1ef9828cbf28175533dab46b47aead3f4165f725b7a66d1ac214314818f639313ebfef8e0fe245d21bb7f804423f934c2505c493dbce97 musl-fixes.patch
62125c90ff22e52142927d3e1ca8411a757679a304fcf1acf780c692fee1ef8c8d1d4bdbd97dce3e9f6d6678f9640f189fd96400e91c974978f0455966b80c6c musl-linux-limits.patch"
|