wok annotate attr/receipt @ rev 24066

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 05 15:00:07 2021 +0000 (2021-07-05)
parents a4d9cd4fcd65
children 61dfb104a85c
rev   line source
rcx@3647 1 # SliTaz package receipt.
rcx@3647 2
rcx@3647 3 PACKAGE="attr"
Hans-G?nter@20714 4 VERSION="2.4.48"
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/"
Hans-G?nter@20714 10
Hans-G?nter@20714 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20714 12 WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
pankso@12819 13
pankso@12819 14 DEPENDS="glibc-base"
pankso@12819 15 BUILD_DEPENDS="autoconf automake m4 libtool gettext"
Hans-G?nter@20714 16 HOST_ARCH="i486 arm"
pankso@12819 17
pankso@12819 18 # When cross compiling auto-tools, gettext and m4 build system are used.
pankso@12819 19 case "$ARCH" in
pankso@12819 20 arm) BUILD_DEPENDS="" ;;
pankso@12819 21 esac
rcx@3647 22
pascal@24066 23 current_version()
pascal@24066 24 {
pascal@24066 25 wget -O - http://download.savannah.nongnu.org/releases/attr/ 2>/dev/null | \
pascal@24066 26 sed '/href="attr/!d;s|.*attr-\([0-9\.]*\)\..*|\1|' | sed '$!d'
pascal@24066 27 }
pascal@24066 28
rcx@3647 29 # Rules to configure and make the package.
rcx@3647 30 compile_rules()
rcx@3647 31 {
gokhlayeh@7893 32 # Need bash sh to compile
gokhlayeh@7893 33 mv /bin/sh /bin/sh.bak
gokhlayeh@7893 34 ln -s /bin/bash /bin/sh
gokhlayeh@7893 35
al@19269 36 # No need to use rpm
devl547@17664 37 rm /bin/rpm
devl547@17664 38
devl547@17664 39 export INSTALL_USER=root INSTALL_GROUP=root
devl547@17664 40
devl547@17664 41 ./configure $CONFIGURE_ARGS &&
devl547@17664 42 make &&
gokhlayeh@8216 43 make install install-lib install-dev DIST_ROOT=$DESTDIR
devl547@17664 44
gokhlayeh@7893 45 mv -f /bin/sh.bak /bin/sh
rcx@3647 46 }
rcx@3647 47
rcx@3647 48 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3647 49 genpkg_rules()
rcx@3647 50 {
pascal@17665 51 mkdir -p $fs/usr/lib
al@14789 52 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@14789 53 cp -a $install/usr/bin $fs/usr
al@14792 54 find $fs -type f -name '*.so*' -exec chmod a+x \{\} \;
rcx@3647 55 }