wok view perl-tk/receipt @ rev 24226

updated perl-io-tty (1.14 -> 1.16)
author Hans-G?nter Theisgen
date Fri Dec 31 17:52:39 2021 +0100 (2021-12-31)
parents 2593e349e20d
children 964f5e08b2d8
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-tk"
4 VERSION="804.034"
5 CATEGORY="development"
6 SHORT_DESC="A graphical user interface toolkit for Perl."
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/release/Tk"
11 SOURCE="Tk"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://www.cpan.org/modules/by-module/Tk/$TARBALL"
15 DEPENDS="fontconfig jpeg libpng perl tk xorg-libX11 xorg-libXau xorg-libXdmcp zlib"
16 BUILD_DEPENDS="fontconfig-dev jpeg-dev libpng-dev perl tk-dev xorg-libX11-dev
17 xorg-libXau-dev xorg-libXdmcp-dev zlib-dev"
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 /bin/chmod -R u+w *
29 # The Xlib header is wrong...
30 sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' \
31 pTk/Xlib.h
33 perl Makefile.PL &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs
41 cp -a $install/usr $fs
42 }