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