wok-next view perl-tk/receipt @ rev 19989

Up LXQt (WIP, to be continued...)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 20 06:08:44 2017 +0300 (2017-10-20)
parents dfb3d7f1daed
children dd145c435e4b
line source
1 # SliTaz package receipt v2.
3 PACKAGE="perl-tk"
4 VERSION="804.033"
5 CATEGORY="perl"
6 SHORT_DESC="Tk - a graphical user interface toolkit for Perl"
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/release/Tk"
11 TARBALL="Tk-$VERSION.tar.gz"
12 WGET_URL="https://cpan.metacpan.org/authors/id/S/SR/SREZIC/$TARBALL"
14 BUILD_DEPENDS="perl-dev xorg-libX11-dev freetype-dev xorg-libXft-dev \
15 fontconfig-dev libpng-dev zlib-dev libjpeg-turbo-dev tk-dev"
16 SPLIT="perl-tk-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # The Xlib header is wrong...
22 sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' \
23 pTk/Xlib.h
25 perl Makefile.PL &&
26 make DESTDIR=$install install &&
28 chmod -R u+w $install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 perl-tk)
36 copy @std
37 DEPENDS="perl fontconfig libjpeg-turbo libpng xorg-libX11 \
38 xorg-libXft zlib tk"
39 ;;
40 *-dev)
41 copy @dev
42 ;;
43 esac
44 }