diff options
Diffstat (limited to 'main/xfsprogs/APKBUILD')
-rw-r--r-- | main/xfsprogs/APKBUILD | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/main/xfsprogs/APKBUILD b/main/xfsprogs/APKBUILD index 26bb443faa..5863cf6059 100644 --- a/main/xfsprogs/APKBUILD +++ b/main/xfsprogs/APKBUILD @@ -2,31 +2,22 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=xfsprogs pkgver=4.5.0 -pkgrel=1 +pkgrel=2 pkgdesc="XFS filesystem utilities" url="http://xfs.org/index.php/Main_Page" arch="all" license="LGPL" -depends="" makedepends="linux-headers util-linux-dev bash gzip" +options="!check" # no test suite subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-extra" source="https://www.kernel.org/pub/linux/utils/fs/xfs/$pkgname/$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 -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" export DEBUG=-DNDEBUG export OPTIMIZER="$CFLAGS" ./configure \ @@ -35,14 +26,13 @@ build() { --prefix=/usr \ --sbindir=/sbin \ --libexecdir=/usr/lib \ - --enable-gettext=no \ - || return 1 - make SHELL=/bin/bash || return 1 + --enable-gettext=no + make SHELL=/bin/bash } package() { - cd "$_builddir" - make -j1 DIST_ROOT="$pkgdir" install install-dev || return 1 + cd "$builddir" + make -j1 DIST_ROOT="$pkgdir" install install-dev find "$pkgdir" -name *.la -delete mv "$pkgdir"/sbin "$pkgdir"/usr mkdir -p "$pkgdir"/sbin @@ -55,7 +45,7 @@ extra() { depends="$pkgname" pkgdesc="XFS filesystem extra utilities" mkdir -p "$subpkgdir" - rmdir "$pkgdir"/lib "$pkgdir"/usr/lib || return 1 + rmdir "$pkgdir"/lib "$pkgdir"/usr/lib mv "$pkgdir"/usr "$subpkgdir"/ } |