wok-current annotate incron/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | 76ae76cc543f |
children | fc5691f50fea |
rev | line source |
---|---|
pascal@17381 | 1 # SliTaz package receipt. |
pascal@17381 | 2 |
pascal@17381 | 3 PACKAGE="incron" |
pascal@17381 | 4 VERSION="0.5.10" |
pascal@17381 | 5 CATEGORY="base-system" |
pascal@17381 | 6 SHORT_DESC="The inotify cron handles filesystem events." |
pascal@17381 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17381 | 8 LICENSE="GPL2" |
pascal@17381 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@17381 | 10 WEB_SITE="http://inotify.aiken.cz/" |
pascal@17381 | 11 WGET_URL="${WEB_SITE}download/$PACKAGE/$TARBALL" |
pascal@17384 | 12 CONFIG_FILES="/etc/incron.d" |
pascal@17381 | 13 |
pascal@17381 | 14 DEPENDS="gcc-lib-base" |
pascal@17381 | 15 |
pascal@24427 | 16 # What is the latest version available today? |
pascal@24427 | 17 current_version() |
pascal@24427 | 18 { |
pascal@24427 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 20 sed "/doc/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 21 } |
pascal@24427 | 22 |
pascal@17381 | 23 # Rules to configure and make the package. |
pascal@17381 | 24 compile_rules() |
pascal@17381 | 25 { |
pascal@17381 | 26 sed -i 's|/usr/local|/usr|' Makefile |
pascal@17381 | 27 make && |
pascal@17381 | 28 make DESTDIR=$DESTDIR install |
pascal@17381 | 29 } |
pascal@17381 | 30 |
pascal@17381 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17381 | 32 genpkg_rules() |
pascal@17381 | 33 { |
pascal@17381 | 34 mkdir -p $fs/usr |
pascal@17381 | 35 cp -a $install/usr/bin $fs/usr |
pascal@17381 | 36 cp -a $install/usr/sbin $fs/usr |
pascal@17381 | 37 cp -a $install/etc $fs/ |
pascal@17381 | 38 cp -a $install/var $fs/ |
pascal@17381 | 39 } |