wok annotate phpfm/receipt @ rev 24304
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 11:01:52 2022 +0000 (2022-01-17) |
parents | 54f6cfa51542 |
children | d008cce77ad1 |
rev | line source |
---|---|
pascal@17184 | 1 # SliTaz package receipt. |
pascal@17184 | 2 |
pascal@17184 | 3 PACKAGE="phpfm" |
pascal@17184 | 4 SOURCE="phpFileManager" |
pascal@17184 | 5 VERSION="0.9.8" |
pascal@17184 | 6 CATEGORY="misc" |
pascal@17185 | 7 SHORT_DESC="PHP Filesystem Management Tool in a single file." |
pascal@17184 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17184 | 9 LICENSE="GPL2 LGPL2.1 MPL" |
pascal@17184 | 10 TARBALL="$SOURCE-$VERSION.zip" |
pascal@17184 | 11 WEB_SITE="http://phpfm.sourceforge.net/" |
pascal@17184 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@17184 | 13 |
pascal@17184 | 14 DEPENDS="php" |
pascal@17184 | 15 |
pascal@24102 | 16 current_version() |
pascal@24102 | 17 { |
pascal@24102 | 18 wget -O - https://sourceforge.net/projects/phpfm/files/phpFileManager/ 2>/dev/null | \ |
pascal@24102 | 19 sed '/Click to/!d;s|.*version ||;s|".*||;q' |
pascal@24102 | 20 } |
pascal@24102 | 21 |
pascal@17184 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17184 | 23 genpkg_rules() |
pascal@17184 | 24 { |
pascal@17184 | 25 mkdir -p $fs/var/www/$PACKAGE |
pascal@17184 | 26 cp $src/index.php $fs/var/www/$PACKAGE/ |
pascal@17184 | 27 } |