APKBUILD 1.68 KB
Newer Older
1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
Natanael Copa's avatar
Natanael Copa committed
2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
4
pkgver=4.3.0
5
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
6 7
pkgdesc="XFS filesystem utilities"
url="http://oss.sgi.com/projects/xfs/"
8
arch="all"
Natanael Copa's avatar
Natanael Copa committed
9
license="LGPL"
10 11 12 13
depends=""
makedepends="linux-headers e2fsprogs-dev bash gzip"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="ftp://oss.sgi.com/projects/xfs/cmd_tars/$pkgname-$pkgver.tar.gz
14
	musl-fixes.patch
Natanael Copa's avatar
Natanael Copa committed
15 16
	"

17 18 19 20
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
21 22 23 24 25
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
26
}
27

28 29
build() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
30 31
	export DEBUG=-DNDEBUG
	export OPTIMIZER="$CFLAGS"
32 33
	export INSTALL_USER=root
	export INSTALL_GROUP=root
34 35 36 37
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
38 39
		--sbindir=/sbin \
		--libexecdir=/usr/lib \
40
		--enable-lib64=no \
41 42
		--enable-gettext=no \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
43

44
	make SHELL=/bin/bash || return 1
45 46 47 48
}

package() {
	cd "$_builddir"
49 50
	make -j1 DIST_ROOT="$pkgdir" install install-dev || return 1
	find "$pkgdir" -name *.la -delete
Natanael Copa's avatar
Natanael Copa committed
51
}
52 53 54 55 56 57 58

md5sums="ade22791338fa3d2cf442d6bb84f1748  xfsprogs-4.3.0.tar.gz
10fe8108861988ec1a1026521c21ec75  musl-fixes.patch"
sha256sums="3e570ad51153e4be3792f42b2c805ddbd46b55d166eba3102ec87d5006d4cb5c  xfsprogs-4.3.0.tar.gz
2d5846e695f9c14bf886e45637985155b580e261fb992f209012f6cbaaf6415a  musl-fixes.patch"
sha512sums="c19c07497eb78dd2beb6dc35b8c21abf5fa3ac164eed32f7b95b71d460c8f08bba5550ecc156fafe412bf1b5452e40180e6fcd439d289a660afd594477f209d2  xfsprogs-4.3.0.tar.gz
52d7ff52e19a5f351f3a97bb20c9f5a063b344ca2e18250a5ee3e15a1693461f95825aa8b7c3c9149d2ce3696c64772d092f679810eccf996321ea93b0770596  musl-fixes.patch"