wok-6.x annotate perl-number-compare/receipt @ rev 25522
created recipes for libtermkey and libtermkey-dev 0.22
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:12:54 2023 +0100 (20 months ago) |
parents | 5e2935aa44a8 |
children |
rev | line source |
---|---|
slaxemulator@10174 | 1 # SliTaz package receipt. |
slaxemulator@10174 | 2 |
slaxemulator@10174 | 3 PACKAGE="perl-number-compare" |
Hans-G?nter@23382 | 4 VERSION="0.03" |
slaxemulator@10174 | 5 CATEGORY="development" |
Hans-G?nter@23382 | 6 SHORT_DESC="Perl Module Number::Compare." |
slaxemulator@10174 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23382 | 9 WEB_SITE="https://metacpan.org/release/Number-Compare/" |
Hans-G?nter@23382 | 10 |
Hans-G?nter@23382 | 11 SOURCE="Number-Compare" |
Hans-G?nter@23382 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23382 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Number/$TARBALL" |
Hans-G?nter@23382 | 14 |
slaxemulator@10174 | 15 DEPENDS="perl" |
slaxemulator@10174 | 16 BUILD_DEPENDS="perl" |
slaxemulator@10174 | 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 |
slaxemulator@10174 | 24 # Rules to configure and make the package. |
slaxemulator@10174 | 25 compile_rules() |
slaxemulator@10174 | 26 { |
slaxemulator@10174 | 27 perl Makefile.PL && |
slaxemulator@10174 | 28 make && |
slaxemulator@10174 | 29 make install DESTDIR=$DESTDIR |
slaxemulator@10174 | 30 } |
slaxemulator@10174 | 31 |
slaxemulator@10174 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10174 | 33 genpkg_rules() |
slaxemulator@10174 | 34 { |
slaxemulator@10174 | 35 mkdir -p $fs/usr |
Hans-G?nter@23382 | 36 cp -a $install/usr/lib $fs/usr |
slaxemulator@10174 | 37 } |