wok-6.x view attr/receipt @ rev 24092

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