wok annotate perl-gd/receipt @ rev 24279
taziso: rework usbbootkey
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 10 14:18:26 2022 +0000 (2022-01-10) |
parents | ed2ab2ea5f62 |
children | 1805f71c5d9f |
rev | line source |
---|---|
pascal@4940 | 1 # SliTaz package receipt. |
pascal@4940 | 2 |
pascal@4940 | 3 PACKAGE="perl-gd" |
Hans-G?nter@23335 | 4 VERSION="2.71" |
pascal@4940 | 5 CATEGORY="development" |
Hans-G?nter@23335 | 6 SHORT_DESC="Perl extension GD." |
pascal@4940 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23335 | 9 WEB_SITE="https://metacpan.org/release/GD" |
Hans-G?nter@23335 | 10 |
pascal@4940 | 11 SOURCE="GD" |
pascal@4940 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23335 | 13 WGET_URL="https://www.cpan.org/modules/by-module/GD/$TARBALL" |
Hans-G?nter@23335 | 14 |
Hans-G?nter@23335 | 15 DEPENDS="libgd perl" |
Hans-G?nter@23335 | 16 BUILD_DEPENDS="libgd libgd-dev perl" |
pascal@4940 | 17 |
pascal@24102 | 18 current_version() |
pascal@24102 | 19 { |
pascal@24102 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 21 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 22 } |
pascal@24102 | 23 |
pascal@4940 | 24 # Rules to configure and make the package. |
pascal@4940 | 25 compile_rules() |
pascal@4940 | 26 { |
Hans-G?nter@23335 | 27 perl Makefile.PL && |
Hans-G?nter@23335 | 28 make && |
pascal@14702 | 29 make DESTDIR=$DESTDIR install |
pascal@4940 | 30 } |
pascal@4940 | 31 |
pascal@4940 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4940 | 33 genpkg_rules() |
pascal@4940 | 34 { |
pascal@4940 | 35 mkdir -p $fs/usr |
Hans-G?nter@23335 | 36 cp -a $install/usr/lib $fs/usr |
pascal@4940 | 37 } |