wok-current view attr/receipt @ rev 25582

Up gcc 6.3.0, fix grub4dos and others packages
author Stanislas Leduc <shann@slitaz.org>
date Sun May 21 15:09:45 2023 +0000 (19 months ago)
parents 61dfb104a85c
children 5926178cd6fa
line source
1 # SliTaz package receipt.
3 PACKAGE="attr"
4 VERSION="2.5.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Commands for manipulating Filesystem Extended Attributes."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 WEB_SITE="https://savannah.nongnu.org/projects/attr/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="autoconf automake m4 bash libtool" #gettext (avoid loop build)
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
40 {
41 INSTALL_USER=root \
42 INSTALL_GROUP=root \
43 ./configure \
44 $CONFIGURE_ARGS &&
45 make &&
46 make install install-lib \
47 install-dev DIST_ROOT=$DESTDIR
48 } || {
49 mv -f /bin/sh.bak /bin/sh
50 return 1
51 }
53 mv -f /bin/sh.bak /bin/sh
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 cook_copy_folders bin
60 cook_copy_files *.so*
62 find $fs -type f -name '*.so*' -exec chmod a+x \{\} \;
63 }