wok-current view perl-pango/receipt @ rev 24102
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 17 10:35:57 2021 +0000 (2021-09-17) |
parents | 18c66805dd1a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-pango"
4 SOURCE="Pango"
5 VERSION="1.227"
6 CATEGORY="development"
7 SHORT_DESC="Layout and render international text."
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="LGPL2.1"
10 DEPENDS="perl pango perl-glib perl-cairo xcb-util"
11 BUILD_DEPENDS="$DEPENDS glib-dev pango-dev cairo-dev freetype-dev \
12 libpng-dev fontconfig-dev perl-extutils-depends perl-extutils-pkgconfig"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WEB_SITE="https://metacpan.org/release/Pango"
15 WGET_URL="https://cpan.metacpan.org/authors/id/X/XA/XAOC/$TARBALL"
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 perl Makefile.PL &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 rm -rf $pkgdir/installnone
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/lib $fs/usr
37 }