summaryrefslogtreecommitdiffstats
path: root/main/attr
diff options
context:
space:
mode:
Diffstat (limited to 'main/attr')
-rw-r--r--main/attr/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/attr/APKBUILD b/main/attr/APKBUILD
new file mode 100644
index 000000000..7046bd56f
--- /dev/null
+++ b/main/attr/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=attr
+pkgver=2.4.44
+_ver=2.4.44
+pkgrel=1
+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"