Commit f4c0b6c3 authored by Roberto Oliveira's avatar Roberto Oliveira Committed by Carlo Landmeter
Browse files

main/xfsprogs: modernize and mark no test suite

parent 0310003d
......@@ -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"/
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment