wok annotate attr/receipt @ rev 17259

Add xar.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Oct 22 00:09:32 2014 +0300 (2014-10-22)
parents 2a5cc8208d36
children 48b3913df4ef
rev   line source
rcx@3647 1 # SliTaz package receipt.
rcx@3647 2
rcx@3647 3 PACKAGE="attr"
slaxemulator@10128 4 VERSION="2.4.46"
rcx@3647 5 CATEGORY="system-tools"
rcx@3647 6 SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes."
rcx@3647 7 MAINTAINER="rcx@zoominternet.net"
pascal@15379 8 LICENSE="GPL2"
al@14789 9 WEB_SITE="http://savannah.nongnu.org/projects/attr/"
rcx@6060 10 TARBALL="${PACKAGE}-${VERSION}.src.tar.gz"
rcx@6060 11 WGET_URL="http://download.savannah.gnu.org/releases-noredirect/$PACKAGE/$TARBALL"
pankso@12819 12 HOST_ARCH="i486 arm"
pankso@12819 13
pankso@12819 14 DEPENDS="glibc-base"
pankso@12819 15 BUILD_DEPENDS="autoconf automake m4 libtool gettext"
pankso@12819 16
pankso@12819 17 # When cross compiling auto-tools, gettext and m4 build system are used.
pankso@12819 18 case "$ARCH" in
pankso@12819 19 arm) BUILD_DEPENDS="" ;;
pankso@12819 20 esac
rcx@3647 21
rcx@3647 22 # Rules to configure and make the package.
rcx@3647 23 compile_rules()
rcx@3647 24 {
rcx@3647 25 cd $src
rcx@3647 26
gokhlayeh@7893 27 # Need bash sh to compile
gokhlayeh@7893 28 mv /bin/sh /bin/sh.bak
gokhlayeh@7893 29 ln -s /bin/bash /bin/sh
gokhlayeh@7893 30
rcx@3747 31 # Configure is included in Makefile
gokhlayeh@7893 32 { make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
gokhlayeh@8216 33 make install install-lib install-dev DIST_ROOT=$DESTDIR
gokhlayeh@7893 34 } || { mv -f /bin/sh.bak /bin/sh; return 1; }
gokhlayeh@7893 35
gokhlayeh@7893 36 mv -f /bin/sh.bak /bin/sh
rcx@3647 37 }
rcx@3647 38
rcx@3647 39 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3647 40 genpkg_rules()
rcx@3647 41 {
gokhlayeh@8050 42 mkdir -p $fs/lib $fs/usr/lib
al@14789 43 cp -a $install/lib/*.so* $fs/lib
al@14789 44 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@14789 45 cp -a $install/usr/bin $fs/usr
al@14792 46 find $fs -type f -name '*.so*' -exec chmod a+x \{\} \;
pankso@16067 47 # Fix /usr/lib/libattr.so
pankso@16067 48 cd $fs/usr/lib
pankso@16067 49 rm libattr.so && ln -s ../../lib/libattr.so
rcx@3647 50 }