wok view phpqrcode/receipt @ rev 24102

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 17 10:35:57 2021 +0000 (2021-09-17)
parents d51b2411e55e
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="phpqrcode"
4 VERSION="1.1.4"
5 CATEGORY="development"
6 SHORT_DESC="Library for generating QR Code, 2-dimensional barcode."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-2010100721_$VERSION.zip"
10 WEB_SITE="http://phpqrcode.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="any"
14 DEPENDS="qrencode php-gd"
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/phpqrcode/files/releases/ 2>/dev/null | \
19 sed '/released/!d;s|.*_||;s|.zip.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mv phpqrcode $src 2> /dev/null
26 cd $src
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share/$PACKAGE
33 cp -a $src $fs//usr/share/$PACKAGE/
34 }