wok-next view attr/receipt @ rev 3744
Update: attr (build)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Thu Jul 23 13:33:52 2009 +0000 (2009-07-23) |
parents | 74dedc4cebdf |
children | 3a9a515bf97c |
line source
1 # SliTaz package receipt.
3 PACKAGE="attr"
4 VERSION="2.4.43-1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes."
7 MAINTAINER="rcx@zoominternet.net"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext"
10 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
11 WEB_SITE="http://savannah.nongnu.org/projects/attr/"
12 WGET_URL="ftp://oss.sgi.com/projects/xfs/cmd_tars/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mv $PACKAGE-2.4.43 $PACKAGE-$VERSION
19 cd $src
21 # these sed lines replace the patch "attr.destdir.diff" from the Slackware source files
22 sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in
23 sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in
24 sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in
25 sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in
26 sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in
27 sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in
29 # force docdir conformance to Slack default
30 sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in
31 sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in
33 # Don't need to build man and doc
34 rm -r -f man
35 rm -r -f doc
37 ./configure \
38 --prefix=/usr \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$src/_pkg install install-lib install-dev
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
50 mkdir -p $fs/usr/libexec
51 cp -a $_pkg/usr/libexec/*.so* $fs/usr/libexec
53 cp -a $_pkg/usr/bin $fs/usr
54 }