aboutsummaryrefslogtreecommitdiffstats
path: root/main/acl/APKBUILD
blob: 197b5a2e5b23dfbc77dac0c79049def075942f6e (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
51
52
53
54
55
56
57
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=acl
pkgver=2.2.51
pkgrel=2
pkgdesc="Access control list utilities"
url="http://acl.bestbits.at/"
arch="all"
license="LGPL"
depends=
makedepends="attr-dev gzip"
subpackages="$pkgname-dev $pkgname-doc libacl"
source="http://download.savannah.gnu.org/releases-noredirect/acl/acl-$pkgver.src.tar.gz
	quote-strchr.patch"

prepare() {
	cd "$srcdir"/acl-$pkgver
	patch -p1 -i "$srcdir"/quote-strchr.patch || return 1
	#libtoolize --force && aclocal -I m4 && autoconf && autoheader
	sed -i \
		-e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \
		configure # hack PATH with AC_PATH_PROG
	sed -i \
		-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
		-e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
		include/builddefs.in \
		|| return 1
}

build() {
	cd "$srcdir"/acl-$pkgver
	unset PLATFORM
	export OPTIMIZER="${CFLAGS}"
	export DEBUG=-DNDEBUG
	CONFIG_SHELL=/bin/sh ./configure --prefix=/usr \
		--libdir=/lib \
		--libexecdir=/usr/lib \
		--disable-gettext \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/acl-$pkgver
	make DIST_ROOT="$pkgdir" install install-lib install-dev || return 1
	rm "$pkgdir"/usr/lib/*.la "$pkgdir"/lib/*.la || return 1
	mv "$pkgdir"/lib/libacl.a "$pkgdir"/usr/lib/
	chown -R root:root "$pkgdir"/*
}

libacl() {
	pkgdesc="Dynamic library for access control list support"
	mkdir -p "$subpkgdir"/lib
	mv "$pkgdir"/lib/libacl.so.* "$subpkgdir"/lib/
}

md5sums="3fc0ce99dc5253bdcce4c9cd437bc267  acl-2.2.51.src.tar.gz
1bef4f022a068ebfeb3b5363dc6ce174  quote-strchr.patch"