wok-current view perl-tk/receipt @ rev 25724
Up audacity to 3.0.2, fix openssh/wxWidgets build
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Jun 25 14:51:14 2024 +0000 (4 months ago) |
parents | 15650f5d595b |
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 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 }