CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
util-linux-ng: update to 2.19.1
[crossrootfs.git] / attr / Pkgfile
1 # Description: Extented attributes library
2 # URL: http://savannah.nongnu.org/projects/attr/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5
6 name=attr
7 version=2.4.46
8 release=1
9 source=(http://mirrors.zerg.biz/nongnu/$name/$name-$version.src.tar.gz)
10
11 build() {
12 cd $name-$version
13
14 export DEBUG=-DNDEBUG
15 export OPTIMIZER=$CFLAGS
16
17 ./configure --build=$CHOST \
18 --host=$CTARGET \
19 --prefix=/usr \
20 --bindir=/bin \
21 --libexecdir=/usr/lib \
22 --mandir=/usr/man
23 make
24 make DIST_ROOT=$PKG install install-lib install-dev
25
26 install -d $PKG/lib
27 mv $PKG/usr/lib/libattr.so.* $PKG/lib
28 rm $PKG/usr/lib/libattr.so
29 ln -s ../../lib/libattr.so.1.1.0 $PKG/usr/lib/libattr.so
30
31 # category 2 manuals are included in core/man-pages
32 rm -r $PKG/usr/man/man2
33
34 rm -r $PKG/usr/share
35 }