wok-next annotate attr/receipt @ rev 20545
vmtouch: create $install/usr/bin path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 03 15:08:22 2018 +0200 (2018-04-03) |
parents | 4550df96633d |
children | 835b3b8ce6ac |
rev | line source |
---|---|
al@19735 | 1 # SliTaz package receipt v2. |
rcx@3647 | 2 |
rcx@3647 | 3 PACKAGE="attr" |
devl547@17648 | 4 VERSION="2.4.47" |
rcx@3647 | 5 CATEGORY="system-tools" |
al@20436 | 6 SHORT_DESC="Commands for manipulating filesystem extended attributes" |
rcx@3647 | 7 MAINTAINER="rcx@zoominternet.net" |
pascal@15379 | 8 LICENSE="GPL2" |
al@19570 | 9 WEB_SITE="http://savannah.nongnu.org/projects/attr" |
al@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/attr.html" |
pankso@12819 | 11 |
al@19570 | 12 TARBALL="$PACKAGE-$VERSION.src.tar.gz" |
al@20436 | 13 WGET_URL="http://download.savannah.gnu.org/releases/attr/$TARBALL" |
al@19570 | 14 |
al@20436 | 15 BUILD_DEPENDS_arm=" " |
al@19570 | 16 BUILD_DEPENDS="autoconf automake m4 libtool gettext coreutils-operations" |
al@19735 | 17 SPLIT="attr-dev" |
rcx@3647 | 18 |
al@20436 | 19 compile_rules() { |
al@20436 | 20 rm /bin/rpm >/dev/null |
al@19570 | 21 sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in |
gokhlayeh@7893 | 22 |
al@19570 | 23 ./configure \ |
al@19570 | 24 --bindir=/bin \ |
al@19570 | 25 --disable-static \ |
al@19570 | 26 $CONFIGURE_ARGS && |
devl547@17664 | 27 make && |
al@20436 | 28 make install install-lib install-dev DIST_ROOT=$DESTDIR || return 1 |
al@19570 | 29 |
al@19570 | 30 mkdir -p $install/lib |
al@19570 | 31 mv $install/usr/lib/libattr.so.* $install/lib |
al@19570 | 32 ln -sf ../../lib/$(readlink $install/usr/lib/libattr.so) \ |
al@19570 | 33 $install/usr/lib/libattr.so |
al@20436 | 34 |
al@19570 | 35 find $install -type f \( -name '*.so*' -o -name '*.la' \) \ |
al@19570 | 36 -exec chmod 755 \{\} \; |
rcx@3647 | 37 } |
rcx@3647 | 38 |
al@20436 | 39 genpkg_rules() { |
al@19735 | 40 case $PACKAGE in |
al@20436 | 41 attr) |
al@20436 | 42 copy @std |
al@20436 | 43 TAGS="LFS" |
al@20436 | 44 ;; |
al@20436 | 45 *-dev) copy @dev;; |
al@19735 | 46 esac |
rcx@3647 | 47 } |