wok-current view perl-tk/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (6 weeks ago)
parents 964f5e08b2d8
children
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-tk"
4 VERSION="804.036"
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/pod/Tk"
10 REPOLOGY="perl:tk"
12 SOURCE="Tk"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://www.cpan.org/modules/by-module/Tk/$TARBALL"
16 DEPENDS="fontconfig jpeg libpng perl tk xorg-libX11 xorg-libXau xorg-libXdmcp zlib"
17 BUILD_DEPENDS="fontconfig-dev jpeg-dev libpng-dev perl tk-dev xorg-libX11-dev
18 xorg-libXau-dev xorg-libXdmcp-dev zlib-dev"
20 HOST_ARCH="i486 x86_64"
22 current_version()
23 {
24 wget -O - $WEB_SITE 2>/dev/null | \
25 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 /bin/chmod -R u+w *
32 # The Xlib header is wrong...
33 sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' \
34 pTk/Xlib.h
36 perl Makefile.PL &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cook_copy_folders bin
44 cook_copy_folders lib
45 }