wok annotate indent/receipt @ rev 25286
updated rsnapshot (1.4.3 -> 1.4.4)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 17:11:03 2022 +0100 (2022-07-18) |
parents | 505b1193ddc4 |
children | d79ed38ace18 |
rev | line source |
---|---|
hipeng@11313 | 1 # SliTaz package receipt. |
hipeng@11313 | 2 |
hipeng@11313 | 3 PACKAGE="indent" |
Hans-G?nter@21048 | 4 VERSION="2.2.12" |
hipeng@11313 | 5 CATEGORY="utilities" |
hipeng@11313 | 6 SHORT_DESC="A tool for formatting C code." |
pascal@16047 | 7 MAINTAINER="lufeng369@slitaz.org" |
pascal@15600 | 8 LICENSE="GPL3" |
Hans-G?nter@21048 | 9 WEB_SITE="https://www.gnu.org/software/indent/" |
Hans-G?nter@21048 | 10 |
hipeng@11313 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
hipeng@11313 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
hipeng@11313 | 13 |
Hans-G?nter@21050 | 14 BUILD_DEPENDS="texinfo" |
Hans-G?nter@21050 | 15 |
pascal@24336 | 16 # What is the latest version available today? |
pascal@24336 | 17 current_version() |
pascal@24336 | 18 { |
pascal@24336 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 21 } |
pascal@24336 | 22 |
hipeng@11313 | 23 # Rules to configure and make the package. |
hipeng@11313 | 24 compile_rules() |
hipeng@11313 | 25 { |
pascal@19291 | 26 rm -f man/indent.1 |
pascal@19291 | 27 sed -i 's|/doc/|/share&|' doc/Makefile* |
Hans-G?nter@21048 | 28 |
Hans-G?nter@21048 | 29 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@21048 | 30 make -j 1 && |
Hans-G?nter@21048 | 31 make install |
hipeng@11313 | 32 } |
hipeng@11313 | 33 |
hipeng@11313 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
hipeng@11313 | 35 genpkg_rules() |
hipeng@11313 | 36 { |
hipeng@11313 | 37 mkdir -p $fs/usr/bin |
pascal@15600 | 38 cp -a $install/usr/bin/indent $fs/usr/bin |
hipeng@11313 | 39 } |