blob: ac5e98c274f9e72a25e718849a39925b1620b587 (
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.0
pkgrel=0
pkgdesc="XFS filesystem utilities"
url="http://oss.sgi.com/projects/xfs/"
arch="all"
license="LGPL"
depends="e2fsprogs"
makedepends="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 "$pkgdir"/usr/lib/*.la "$pkgdir"/lib/*.la
}
md5sums="400047b2f6af87c0345b8f0cc00c13db xfsprogs-3.2.0.tar.gz
534a85a3afc1afd328975222ce43f4b7 musl-fixes.patch
a7a1f812836cb49af45b6de74fa07837 musl-linux-limits.patch"
sha256sums="62a986afb3459718a5a915403483b022f8237d50c293aafd8392872c187fcbb3 xfsprogs-3.2.0.tar.gz
b6488dfd3f419cdbcb7d259be1038df51ebff2799774bf643f9d7838ddc4c742 musl-fixes.patch
6d8e49de188fc9932ea488a8945601bf2035b03dfa4c3667bd55689445582696 musl-linux-limits.patch"
sha512sums="dfc4498792d94762f72a1b2e59d20639c1ff259d78b6e0c2d4b86f777e362009be7466c21e27121077f7cfc65bb72edec1a016695f7d4000df10f3f025fddc68 xfsprogs-3.2.0.tar.gz
1cb52686cb2aa9b515feaa08f0b0e44decde7a5a61a3102a4c2ec9d7a3c9f1601c53308be039f717b8e999997b8222e76728bf45053330d3f820bfc040576074 musl-fixes.patch
62125c90ff22e52142927d3e1ca8411a757679a304fcf1acf780c692fee1ef8c8d1d4bdbd97dce3e9f6d6678f9640f189fd96400e91c974978f0455966b80c6c musl-linux-limits.patch"
|