CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
filesystem: removed lib32 directories
[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.47
8 release=2
9 source=(http://download-mirror.savannah.gnu.org/releases/$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 make
23 make DIST_ROOT=$PKG install install-lib install-dev
24
25 install -d $PKG/lib
26 mv $PKG/usr/lib/libattr.so.* $PKG/lib
27 rm $PKG/usr/lib/libattr.so
28 ln -s ../../lib/libattr.so.1.1.0 $PKG/usr/lib/libattr.so
29
30 # category 2 manuals are included in core/man-pages
31 rm -r $PKG/usr/share/man/man2
32
33 rm -r $PKG/usr/share/{doc,locale}
34 }