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