wok view smake/receipt @ rev 24353

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 12:55:23 2022 +0000 (2022-02-03)
parents ac1c9eae60aa
children 8ea0030e77cb
line source
1 # SliTaz package receipt.
3 PACKAGE="smake"
4 VERSION="1.2.5"
5 CATEGORY="development"
6 SHORT_DESC="Generate executables and other files from source."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 LGPL2.1 CDDL"
9 WEB_SITE="https://sourceforge.net/projects/s-make/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="hhtps://downloads.sourceforge.net/s-make/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/s-make/files/ 2>/dev/null | \
21 sed '/scope="row/!d;/smake-/!d;s|.*/smake-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make INS_BASE=/usr MANDIR=share/man DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 }