wok-next annotate attr/receipt @ rev 20569
Fix libtool where applicable (a*-f* packages yet); combine collectd* receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 13 07:14:16 2018 +0300 (2018-04-13) |
parents | 90a5eb560fd6 |
children | 41860cbdf043 |
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 && |
al@20569 | 27 fix libtool && |
devl547@17664 | 28 make && |
al@20436 | 29 make install install-lib install-dev DIST_ROOT=$DESTDIR || return 1 |
al@19570 | 30 |
al@19570 | 31 mkdir -p $install/lib |
al@19570 | 32 mv $install/usr/lib/libattr.so.* $install/lib |
al@19570 | 33 ln -sf ../../lib/$(readlink $install/usr/lib/libattr.so) \ |
al@19570 | 34 $install/usr/lib/libattr.so |
al@20436 | 35 |
al@19570 | 36 find $install -type f \( -name '*.so*' -o -name '*.la' \) \ |
al@19570 | 37 -exec chmod 755 \{\} \; |
rcx@3647 | 38 } |
rcx@3647 | 39 |
al@20436 | 40 genpkg_rules() { |
al@19735 | 41 case $PACKAGE in |
al@20436 | 42 attr) |
al@20436 | 43 copy @std |
al@20436 | 44 TAGS="LFS" |
al@20436 | 45 ;; |
al@20436 | 46 *-dev) copy @dev;; |
al@19735 | 47 esac |
rcx@3647 | 48 } |