wok-6.x annotate perl-curses/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 | 13f8c8204124 |
children | f5b60c3a2ab9 |
rev | line source |
---|---|
pascal@1615 | 1 # SliTaz package receipt. |
pascal@1615 | 2 |
pascal@1615 | 3 PACKAGE="perl-curses" |
Hans-G?nter@23306 | 4 VERSION="1.36" |
pascal@1615 | 5 CATEGORY="development" |
Hans-G?nter@23306 | 6 SHORT_DESC="Perl extension Curses." |
pascal@1615 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23306 | 9 WEB_SITE="https://metacpan.org/release/Curses" |
Hans-G?nter@23306 | 10 |
pascal@1615 | 11 SOURCE="Curses" |
Hans-G?nter@23306 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23306 | 13 WGET_URL="https://cpan.metacpan.org/authors/id/G/GI/GIRAFFED/$TARBALL" |
pascal@1615 | 14 |
Hans-G?nter@23306 | 15 DEPENDS="ncursesw perl" |
Hans-G?nter@23306 | 16 BUILD_DEPENDS="ncursesw-dev perl" |
pascal@14703 | 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 |
pascal@1615 | 24 # Rules to configure and make the package. |
pascal@1615 | 25 compile_rules() |
pascal@1615 | 26 { |
pascal@1615 | 27 perl Makefile.PL && |
pascal@1615 | 28 make && |
pascal@14702 | 29 make DESTDIR=$DESTDIR install |
pascal@1615 | 30 } |
pascal@1615 | 31 |
pascal@1615 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1615 | 33 genpkg_rules() |
pascal@1615 | 34 { |
pascal@1615 | 35 mkdir -p $fs/usr |
Hans-G?nter@23306 | 36 cp -a $install/usr/lib $fs/usr |
pascal@1615 | 37 } |