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

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents bc6672455954
children 44d2daaccb67
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 libpng16-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 libpng16 xorg-libX11 \
38 xorg-libXft zlib tk"
39 ;;
40 *-dev)
41 copy @dev
42 ;;
43 esac
44 }