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