wok annotate perl-file-mimeinfo/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 258a4b8a7063
children 0e2caf86aa48
rev   line source
paul@3233 1 # SliTaz package receipt.
paul@3233 2
paul@3233 3 PACKAGE="perl-file-mimeinfo"
Hans-G?nter@23331 4 VERSION="0.29"
paul@3233 5 CATEGORY="development"
Hans-G?nter@23331 6 SHORT_DESC="Perl extension File::MimeInfo."
paul@3233 7 MAINTAINER="paul@slitaz.org"
pascal@14702 8 LICENSE="GPL"
Hans-G?nter@23331 9 WEB_SITE="https://metacpan.org/release/File-MimeInfo"
Hans-G?nter@23331 10
Hans-G?nter@23331 11 SOURCE="File-MimeInfo"
Hans-G?nter@23331 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23331 13 WGET_URL="https://www.cpan.org/modules/by-module/File/$TARBALL"
Hans-G?nter@23331 14
paul@3233 15 DEPENDS="perl perl-file-basedir perl-file-desktopentry"
paul@3233 16 BUILD_DEPENDS="perl perl-file-basedir perl-file-desktopentry"
paul@3233 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
paul@3233 24 # Rules to configure and make the package.
paul@3233 25 compile_rules()
paul@3233 26 {
paul@3233 27 perl Makefile.PL &&
paul@3233 28 make &&
pascal@14702 29 make DESTDIR=$DESTDIR install
paul@3233 30 }
paul@3233 31
paul@3233 32 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@3233 33 genpkg_rules()
paul@3233 34 {
paul@3233 35 mkdir -p $fs/usr
Hans-G?nter@23331 36 cp -a $install/usr/lib $fs/usr
paul@3233 37 }