aboutsummaryrefslogtreecommitdiffstats
path: root/main/attr/APKBUILD
blob: a21e209ffa1d21ab7c67f453d8de77ebe798dc3d (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
60
61
62
63
64
65
66
67
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=attr
pkgver=2.4.47
pkgrel=0
pkgdesc="Utilities for managing filesystem extended attributes"
url="http://acl.bestbits.at/"
arch="all"
license="LGPL"
depends=
makedepends="libtool autoconf automake bash gzip"
subpackages="$pkgname-dev $pkgname-doc libattr"
source="http://download.savannah.gnu.org/releases-noredirect/attr/attr-$pkgver.src.tar.gz
	"

prepare() {
	cd "$srcdir"/attr-$pkgver
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	sed -i -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
		include/builddefs.in
}

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 -j1 LIBTOOL=$PWD/libtool DESTDIR="$pkgdir" \
		install install-lib install-dev || return 1
	# provided by man-pages
	rm -r "$pkgdir"/usr/share/man/man2 \
		"$pkgdir"/lib/libattr.la || return 1
}

libattr() {
	pkgdesc="Dynamic library for extended attribute support"
	replaces="attr"
	mkdir -p "$subpkgdir"/lib
	mv "$pkgdir"/lib/lib*.so.* "$subpkgdir"/lib/
}

md5sums="84f58dec00b60f2dc8fd1c9709291cc7  attr-2.4.47.src.tar.gz"
sha256sums="25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859  attr-2.4.47.src.tar.gz"
sha512sums="2a333f63655758298650cf8f89c175efdc0112dcc4013e8d023e2a9a69f177e4bcb1f1d10b6666d6f2027dca4dec0833d54749952ab153d28367e1a72e6e2831  attr-2.4.47.src.tar.gz"