wok view phpqrcode/receipt @ rev 25676
Update some current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 28 15:51:05 2024 +0000 (8 months ago) |
parents | 7dd01dedad38 |
children |
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="https://phpqrcode.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="any"
14 DEPENDS="qrencode php-gd"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/phpqrcode/files/releases/ 2>/dev/null | \
20 sed '/released/!d;s|.*_||;s|.zip.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mv phpqrcode $src 2> /dev/null
27 cd $src
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/$PACKAGE
34 cp -a $src $fs//usr/share/$PACKAGE/
35 }