blob: 57ecd12870a9ec048ced11b421ff08ec4c7444a3 (
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
68
69
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=attr
pkgver=2.4.46
pkgrel=2
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
attr-2.4.32-build.patch
"
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"/usr/lib/*.a \
"$pkgdir"/lib/*.la \
"$pkgdir"/usr/lib/*.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="db557c17fdfa4f785333ecda08654010 attr-2.4.46.src.tar.gz
6d6bd02aca84ec61516d6700a87bbff7 attr-2.4.32-build.patch"
|