wok-6.x annotate inotify-tools/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 349cebfc7da3 |
children | 7f162a2d0d51 |
rev | line source |
---|---|
pankso@15851 | 1 # SliTaz package receipt. |
pankso@15851 | 2 |
pankso@15851 | 3 PACKAGE="inotify-tools" |
Hans-G?nter@22949 | 4 VERSION="3.20.2.2" |
pankso@15851 | 5 CATEGORY="system-tools" |
pankso@15851 | 6 SHORT_DESC="Set of programs providing a simple interface to inotify." |
pankso@15851 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@15851 | 8 LICENSE="GPL" |
Hans-G?nter@22949 | 9 WEB_SITE="https://github.com/rvoicilas/inotify-tools/wiki" |
Hans-G?nter@22949 | 10 |
pankso@15851 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22951 | 12 WGET_URL="https://github.com/rvoicilas/$PACKAGE/archive/$VERSION.tar.gz" |
pankso@15851 | 13 |
pankso@15851 | 14 DEPENDS="" |
Hans-G?nter@22949 | 15 BUILD_DEPENDS="autoconf automake cmake file libtool" |
pankso@15851 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pankso@15851 | 23 # Rules to configure and make the package. |
pankso@15851 | 24 compile_rules() |
pankso@15851 | 25 { |
Hans-G?nter@22949 | 26 ./autogen.sh && |
Hans-G?nter@22949 | 27 ./configure \ |
Hans-G?nter@22949 | 28 --prefix=/usr \ |
Hans-G?nter@22949 | 29 $CONFIGURE_ARGS && |
Hans-G?nter@22949 | 30 make && |
Hans-G?nter@22949 | 31 make install |
pankso@15851 | 32 } |
pankso@15851 | 33 |
pankso@15851 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15851 | 35 genpkg_rules() |
pankso@15851 | 36 { |
pankso@15851 | 37 mkdir -p $fs/usr/lib |
Hans-G?nter@22949 | 38 |
Hans-G?nter@22949 | 39 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22949 | 40 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@15851 | 41 } |