aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfsprogs/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-13 08:54:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-13 08:54:46 +0000
commit6e483f4bb68dca7bd523990d3b2e187a4e9e8eaf (patch)
tree0d3193378e52a541dfca8f9f804f0c1ddb53bfd8 /main/xfsprogs/APKBUILD
parent35038f4a2af51efed7265a064fd4a43ffd8a4b95 (diff)
downloadaports-6e483f4bb68dca7bd523990d3b2e187a4e9e8eaf.tar.bz2
aports-6e483f4bb68dca7bd523990d3b2e187a4e9e8eaf.tar.xz
main/xfsprogs: fix building with musl libc
Diffstat (limited to 'main/xfsprogs/APKBUILD')
-rw-r--r--main/xfsprogs/APKBUILD17
1 files changed, 13 insertions, 4 deletions
diff --git a/main/xfsprogs/APKBUILD b/main/xfsprogs/APKBUILD
index 36cc6d4c46..0497bd5142 100644
--- a/main/xfsprogs/APKBUILD
+++ b/main/xfsprogs/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
pkgver=3.1.11
-pkgrel=0
+pkgrel=1
pkgdesc="XFS filesystem utilities"
url="http://oss.sgi.com/projects/xfs/"
arch="all"
@@ -10,12 +10,18 @@ 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
"
_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
update_config_sub || return 1
sed -i -e 's/--best//' Makefile doc/Makefile
}
@@ -44,6 +50,9 @@ package() {
make -j1 DIST_ROOT="$pkgdir" install install-dev install-qa || return 1
rm "$pkgdir"/usr/lib/*.la "$pkgdir"/lib/*.la
}
-md5sums="de9f1f45026c2f4e0776058d429ff4b6 xfsprogs-3.1.11.tar.gz"
-sha256sums="adf4980177b5c890c1ca86b9c0e3e4d69a3f95bfc01746844280c2393cf4d6be xfsprogs-3.1.11.tar.gz"
-sha512sums="6de16f0904709e53e6ceea8239e23b7e109375733fd712fd97bfbbf74ec7f1376147e61d1fbe498f1d5be2148bf8ca233c0577d5b88e9201bfd4bb87e696c28a xfsprogs-3.1.11.tar.gz"
+md5sums="de9f1f45026c2f4e0776058d429ff4b6 xfsprogs-3.1.11.tar.gz
+534a85a3afc1afd328975222ce43f4b7 musl-fixes.patch"
+sha256sums="adf4980177b5c890c1ca86b9c0e3e4d69a3f95bfc01746844280c2393cf4d6be xfsprogs-3.1.11.tar.gz
+b6488dfd3f419cdbcb7d259be1038df51ebff2799774bf643f9d7838ddc4c742 musl-fixes.patch"
+sha512sums="6de16f0904709e53e6ceea8239e23b7e109375733fd712fd97bfbbf74ec7f1376147e61d1fbe498f1d5be2148bf8ca233c0577d5b88e9201bfd4bb87e696c28a xfsprogs-3.1.11.tar.gz
+1cb52686cb2aa9b515feaa08f0b0e44decde7a5a61a3102a4c2ec9d7a3c9f1601c53308be039f717b8e999997b8222e76728bf45053330d3f820bfc040576074 musl-fixes.patch"