wok-current annotate perl-cairo-gobject/receipt @ rev 24419
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 11:14:46 2022 +0000 (2022-02-11) |
parents | 2846eed9ee6d |
children |
rev | line source |
---|---|
Hans-G?nter@24417 | 1 # SliTaz package receipt. |
Hans-G?nter@24417 | 2 |
Hans-G?nter@24417 | 3 PACKAGE="perl-cairo-gobject" |
Hans-G?nter@24417 | 4 VERSION="1.005" |
Hans-G?nter@24417 | 5 CATEGORY="development" |
Hans-G?nter@24417 | 6 SHORT_DESC="Integrate Cairo into the Glib type system." |
Hans-G?nter@24417 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@24417 | 8 LICENSE="GPL2+" |
Hans-G?nter@24417 | 9 WEB_SITE="https://metacpan.org/dist/Cairo-GObject/" |
Hans-G?nter@24417 | 10 REPOLOGY="perl:cairo-gobject" |
Hans-G?nter@24417 | 11 |
Hans-G?nter@24417 | 12 SOURCE="Cairo-GObject" |
Hans-G?nter@24417 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24417 | 14 WGET_URL="https://cpan.metacpan.org/authors/id/X/XA/XAOC/$TARBALL" |
Hans-G?nter@24417 | 15 |
Hans-G?nter@24417 | 16 DEPENDS="libxml2 perl perl-cairo perl-glib" |
Hans-G?nter@24417 | 17 BUILD_DEPENDS="cairo-dev perl libxml2-dev perl-cairo perl-extutils-depends |
Hans-G?nter@24417 | 18 perl-extutils-pkgconfig perl-glib" |
Hans-G?nter@24417 | 19 |
pascal@24419 | 20 # What is the latest version available today? |
pascal@24419 | 21 current_version() |
pascal@24419 | 22 { |
pascal@24419 | 23 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24419 | 24 sed '/airo-GObject-/!d;s|.*airo-GObject-||;s| -.*||;q' |
pascal@24419 | 25 } |
pascal@24419 | 26 |
Hans-G?nter@24417 | 27 # Rules to configure and make the package. |
Hans-G?nter@24417 | 28 compile_rules() |
Hans-G?nter@24417 | 29 { |
Hans-G?nter@24417 | 30 perl Makefile.PL && |
Hans-G?nter@24417 | 31 make && |
Hans-G?nter@24417 | 32 make install DESTDIR=$DESTDIR |
Hans-G?nter@24417 | 33 } |
Hans-G?nter@24417 | 34 |
Hans-G?nter@24417 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@24417 | 36 genpkg_rules() |
Hans-G?nter@24417 | 37 { |
Hans-G?nter@24417 | 38 cook_copy_folders lib |
Hans-G?nter@24417 | 39 } |