wok-next view attr/receipt @ rev 19675

Update some build dependencies
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 24 12:53:44 2017 +0200 (2017-03-24)
parents 10e3347b5a0d
children 4550df96633d
line source
1 # SliTaz package receipt.
3 PACKAGE="attr"
4 VERSION="2.4.47"
5 CATEGORY="system-tools"
6 SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 WEB_SITE="http://savannah.nongnu.org/projects/attr"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
13 WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
15 DEPENDS="glibc-base"
16 BUILD_DEPENDS="autoconf automake m4 libtool gettext coreutils-operations"
18 # When cross compiling auto-tools, gettext and m4 build system are used.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 rm /bin/rpm
27 sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in
29 ./configure \
30 --bindir=/bin \
31 --disable-static \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install install-lib install-dev DIST_ROOT=$DESTDIR
36 mkdir -p $install/lib
37 mv $install/usr/lib/libattr.so.* $install/lib
38 ln -sf ../../lib/$(readlink $install/usr/lib/libattr.so) \
39 $install/usr/lib/libattr.so
40 find $install -type f \( -name '*.so*' -o -name '*.la' \) \
41 -exec chmod 755 \{\} \;
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 cook_copy_folders bin
48 cook_copy_files *.so*
49 }