wok annotate perl-geo-ipfree/receipt @ rev 25704

BootProg: contiguous file support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 04 16:57:31 2024 +0000 (3 weeks ago)
parents 15650f5d595b
children
rev   line source
erjo@2648 1 # SliTaz package receipt.
erjo@2648 2
pascal@2651 3 PACKAGE="perl-geo-ipfree"
Hans-G?nter@23336 4 VERSION="1.151940"
erjo@2648 5 CATEGORY="development"
Hans-G?nter@23336 6 SHORT_DESC="Perl extension Geo::IPfree."
erjo@2648 7 MAINTAINER="erjo@slitaz.org"
pascal@14702 8 LICENSE="GPL"
pascal@25703 9 WEB_SITE="https://metacpan.org/dist/Geo-IPfree"
Hans-G?nter@23336 10
Hans-G?nter@23336 11 SOURCE="Geo-IPfree"
Hans-G?nter@23336 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23336 13 WGET_URL="https://cpan.metacpan.org/authors/id/B/BR/BRICAS/$TARBALL"
Hans-G?nter@23336 14
erjo@2648 15 DEPENDS="perl"
erjo@2648 16 BUILD_DEPENDS="perl"
erjo@2648 17
pascal@25703 18 # What is the latest version available today?
pascal@24102 19 current_version()
pascal@24102 20 {
pascal@24102 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 22 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24102 23 }
pascal@24102 24
erjo@2648 25 # Rules to configure and make the package.
erjo@2648 26 compile_rules()
erjo@2648 27 {
Hans-G?nter@23336 28 perl Makefile.PL &&
Hans-G?nter@23336 29 make &&
pascal@14702 30 make DESTDIR=$DESTDIR install
erjo@2648 31 }
erjo@2648 32
erjo@2648 33 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@2648 34 genpkg_rules()
erjo@2648 35 {
erjo@2648 36 mkdir -p $fs/usr
Hans-G?nter@23336 37 cp -a $install/usr/lib $fs/usr
erjo@2648 38 }