wok-current annotate perl-tk/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 | 2593e349e20d |
children | 964f5e08b2d8 |
rev | line source |
---|---|
sygne@1557 | 1 # SliTaz package receipt. |
sygne@1557 | 2 |
sygne@1557 | 3 PACKAGE="perl-tk" |
Hans-G?nter@23408 | 4 VERSION="804.034" |
sygne@1557 | 5 CATEGORY="development" |
Hans-G?nter@23408 | 6 SHORT_DESC="A graphical user interface toolkit for Perl." |
sygne@1557 | 7 MAINTAINER="sygne@ombres.eu" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23408 | 9 WEB_SITE="https://metacpan.org/release/Tk" |
Hans-G?nter@23408 | 10 |
sygne@1557 | 11 SOURCE="Tk" |
sygne@1557 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23408 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Tk/$TARBALL" |
Hans-G?nter@23408 | 14 |
Hans-G?nter@23408 | 15 DEPENDS="fontconfig jpeg libpng perl tk xorg-libX11 xorg-libXau xorg-libXdmcp zlib" |
Hans-G?nter@23408 | 16 BUILD_DEPENDS="fontconfig-dev jpeg-dev libpng-dev perl tk-dev xorg-libX11-dev |
Hans-G?nter@23408 | 17 xorg-libXau-dev xorg-libXdmcp-dev zlib-dev" |
sygne@1557 | 18 |
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 |
sygne@1557 | 25 # Rules to configure and make the package. |
sygne@1557 | 26 compile_rules() |
sygne@1557 | 27 { |
slaxemulator@9167 | 28 /bin/chmod -R u+w * |
slaxemulator@9167 | 29 # The Xlib header is wrong... |
Hans-G?nter@23408 | 30 sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' \ |
Hans-G?nter@23408 | 31 pTk/Xlib.h |
Hans-G?nter@23408 | 32 |
pascal@2457 | 33 perl Makefile.PL && |
pascal@14702 | 34 make DESTDIR=$DESTDIR install |
sygne@1557 | 35 } |
sygne@1557 | 36 |
sygne@1557 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@1557 | 38 genpkg_rules() |
sygne@1557 | 39 { |
sygne@1557 | 40 mkdir -p $fs |
Hans-G?nter@23408 | 41 cp -a $install/usr $fs |
sygne@1557 | 42 } |