summaryrefslogtreecommitdiffstats
path: root/attr/Pkgfile
blob: 0ed817d554992cfa822175612a6033a2a1c62768 (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
description="Extented attributes library"
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://savannah.nongnu.org/projects/attr/"
depends=()

name=attr
version=2.4.44
release=1
source=(http://mirrors.zerg.biz/nongnu/$name/$name-$version.src.tar.gz)
build () 
{ 
	cd $name-$version;
	export DEBUG=-DNDEBUG;
	export OPTIMIZER=$CFLAGS;
	./configure \
		${CBUILD:+--build=${CBUILD}} \
		${CHOST:+--host=${CHOST}} \
		--prefix=$prefix \
		--bindir=/bin \
		--libexecdir=$libdir \
		--mandir=$mandir;
	make;
	make DIST_ROOT=$PKG install install-lib install-dev;
	install -d $PKG/lib;
	mv $PKG$libdir/libattr.so.* $PKG/lib;
	rm $PKG$libdir/libattr.so;
	ln -s ../../lib/libattr.so.1.1.0 $PKG$libdir/libattr.so;
	#rm -r $PKG/usr/man/man2;
}