aboutsummaryrefslogtreecommitdiffstats
path: root/main/acl/APKBUILD
blob: de8153af4a02afeef082ae561433125c04266c1a (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
58
59
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=acl
pkgver=2.2.52
pkgrel=0
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"

prepare() {
	cd "$srcdir"/acl-$pkgver
	#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@:$pkgname:" \
		-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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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="a61415312426e9c2212bd7dc7929abda  acl-2.2.52.src.tar.gz"
sha256sums="179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23  acl-2.2.52.src.tar.gz"
sha512sums="59973199d371cd0b2368e95bc829a1b47f04e808a174fefba4c6854e766158bd19a71d9dbcc8d6fdc1573a1f971cdda39c453f7fa243bce02c1ab97c6e7c72e7  acl-2.2.52.src.tar.gz"