diff options
author | tnut <tnut at nutyx dot com> | 2012-01-08 12:15:45 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-01-08 12:15:45 +0100 |
commit | 3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch) | |
tree | 819b14ab0377fe2054fe59866669d904e9e0b4b5 /p5-tk/Pkgfile | |
parent | c9972ec7f32bf9d37388e853fe9bf633e242d05a (diff) | |
download | nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2 nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip |
split de git pakxe et NuTyX-extra
Diffstat (limited to 'p5-tk/Pkgfile')
-rw-r--r-- | p5-tk/Pkgfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/p5-tk/Pkgfile b/p5-tk/Pkgfile new file mode 100644 index 000000000..f9fc4c428 --- /dev/null +++ b/p5-tk/Pkgfile @@ -0,0 +1,27 @@ +# Description: Connecteur perl pour tk +# URL: http://search.cpan.org/~ni-s/Tk-804.027/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: tk, p5-x11-protocol +# Run on: tk,p5-x11-protocol + +name=p5-tk +version=804.029 +release=3 +source=(http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-$version.tar.gz) + +build() { + unset MAKEFLAGS + cd Tk-$version + # The Xlib header is wrong... + sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' pTk/Xlib.h + perl Makefile.PL + make OPTIMIZE="${CFLAGS}" + make DESTDIR=$PKG install + find $PKG \ + -name perllocal.pod \ + -o -name .packlist | xargs rm + find $PKG -empty | xargs rmdir -p ||: + chown -R root:root $PKG +} + |