summaryrefslogtreecommitdiffstats
path: root/main/attr/APKBUILD
blob: 6ba4125eb92179042190c78d2c0d302ca5bf8237 (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
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=attr
pkgver=2.4.44
_ver=2.4.44
pkgrel=5
pkgdesc="Extended attribute support library for ACL support"
url="http://oss.sgi.com/projects/xfs/"
license="LGPL"
depends=
makedepends="libtool autoconf automake bash gzip"
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://ftp.archlinux.org/other/attr/attr-${pkgver}.src.tar.gz"

prepare() {
	cd "$srcdir"/attr-$pkgver
	sed -i -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
		include/builddefs.in

	autoconf || return 1
}

build() {
	cd "$srcdir"/attr-$pkgver

	unset PLATFORM #184564
	export OPTIMIZER="${CFLAGS}"
	export DEBUG=-DNDEBUG

	./configure \
		--prefix=/ \
		--exec-prefix=/ \
		--sbindir=/bin \
		--bindir=/usr/bin \
		--libdir=/lib \
		--libexecdir=/usr/lib \
		--enable-lib64=yes \
		--includedir=/usr/include \
		--mandir=/usr/share/man \
		--datadir=/usr/share \
		--disable-gettext || return 1
	make LIBTOOL="libtool --tag=CC" || return 1
}

package() {
	cd "$srcdir"/attr-$pkgver
	make DIST_ROOT="$pkgdir" install install-lib install-dev
	# provided by man-pages
	rm -fr "$pkgdir"/usr/share/man/man2
}
md5sums="adeefe65c5ad1febe46da185c5bfd5d4  attr-2.4.44.src.tar.gz"