wok view indent/receipt @ rev 25364

cpige: apply gibor patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 28 14:38:50 2022 +0000 (2022-07-28)
parents 505b1193ddc4
children d79ed38ace18
line source
1 # SliTaz package receipt.
3 PACKAGE="indent"
4 VERSION="2.2.12"
5 CATEGORY="utilities"
6 SHORT_DESC="A tool for formatting C code."
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/indent/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="texinfo"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 rm -f man/indent.1
27 sed -i 's|/doc/|/share&|' doc/Makefile*
29 ./configure $CONFIGURE_ARGS &&
30 make -j 1 &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 cp -a $install/usr/bin/indent $fs/usr/bin
39 }