wok-6.x annotate perl-tk/receipt @ rev 24951
nagios-plugins: removed patch
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 10:41:57 2022 +0100 (2022-04-23) |
parents | 15650f5d595b |
children |
rev | line source |
---|---|
sygne@1557 | 1 # SliTaz package receipt. |
sygne@1557 | 2 |
sygne@1557 | 3 PACKAGE="perl-tk" |
Hans-G?nter@24264 | 4 VERSION="804.036" |
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@24264 | 9 WEB_SITE="https://metacpan.org/pod/Tk" |
Hans-G?nter@24264 | 10 REPOLOGY="perl:tk" |
Hans-G?nter@23408 | 11 |
sygne@1557 | 12 SOURCE="Tk" |
sygne@1557 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23408 | 14 WGET_URL="https://www.cpan.org/modules/by-module/Tk/$TARBALL" |
Hans-G?nter@23408 | 15 |
Hans-G?nter@23408 | 16 DEPENDS="fontconfig jpeg libpng perl tk xorg-libX11 xorg-libXau xorg-libXdmcp zlib" |
Hans-G?nter@24264 | 17 BUILD_DEPENDS="fontconfig-dev jpeg-dev libpng-dev perl tk-dev xorg-libX11-dev |
Hans-G?nter@23408 | 18 xorg-libXau-dev xorg-libXdmcp-dev zlib-dev" |
sygne@1557 | 19 |
pascal@24102 | 20 current_version() |
pascal@24102 | 21 { |
pascal@24102 | 22 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 23 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 24 } |
pascal@24102 | 25 |
sygne@1557 | 26 # Rules to configure and make the package. |
sygne@1557 | 27 compile_rules() |
sygne@1557 | 28 { |
slaxemulator@9167 | 29 /bin/chmod -R u+w * |
slaxemulator@9167 | 30 # The Xlib header is wrong... |
Hans-G?nter@23408 | 31 sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' \ |
Hans-G?nter@23408 | 32 pTk/Xlib.h |
Hans-G?nter@23408 | 33 |
pascal@2457 | 34 perl Makefile.PL && |
Hans-G?nter@24264 | 35 make install DESTDIR=$DESTDIR |
sygne@1557 | 36 } |
sygne@1557 | 37 |
sygne@1557 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@1557 | 39 genpkg_rules() |
sygne@1557 | 40 { |
Hans-G?nter@24264 | 41 cook_copy_folders bin |
Hans-G?nter@24264 | 42 cook_copy_folders lib |
sygne@1557 | 43 } |