wok-current view phpqrcode/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 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 }