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

created recipes for libmypaint, libmypaint-dev and libmypaint-lang
author Hans-G?nter Theisgen
date Tue Mar 22 16:52:59 2022 +0100 (2022-03-22)
parents 15650f5d595b
children 5926178cd6fa
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 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 /bin/chmod -R u+w *
30 # The Xlib header is wrong...
31 sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' \
32 pTk/Xlib.h
34 perl Makefile.PL &&
35 make install DESTDIR=$DESTDIR
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cook_copy_folders bin
42 cook_copy_folders lib
43 }