summaryrefslogtreecommitdiffstats
path: root/main/xfsprogs/APKBUILD
blob: 36cc6d4c46751af66ad49858a1bf8f92f368a7d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
pkgver=3.1.11
pkgrel=0
pkgdesc="XFS filesystem utilities"
url="http://oss.sgi.com/projects/xfs/"
arch="all"
license="LGPL"
depends="e2fsprogs"
makedepends="e2fsprogs-dev bash"
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-$pkgver.tar.gz
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	sed -i -e 's/--best//' Makefile doc/Makefile
}
	
build() {
	cd "$_builddir"
	export DEBUG=-DNDEBUG
	export OPTIMIZER="$CFLAGS"

	ac_cv_header_aio_h=yes ac_cv_lib_rt_lio_listio=yes \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sbindir=/sbin \
		--libexecdir=/usr/lib \
		--enable-lib64=no \
		--enable-gettext=no \
		|| return 1

	make SHELL=/bin/bash || return 1
}

package() {
	cd "$_builddir"
	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"