diff options
author | root <root@rshg047.dnsready.net> | 2011-05-24 22:48:50 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-24 22:48:50 +0000 |
commit | 363d953113a327863013a9422c8212654a86a209 (patch) | |
tree | 01f2b43d3e98433702f9c6ba92ab45bfa151888a /staging/perl-tk | |
parent | 87e20a64534e8f58ca4a4f84000b629e48569a98 (diff) |
Tue May 24 22:48:50 UTC 2011
Diffstat (limited to 'staging/perl-tk')
-rw-r--r-- | staging/perl-tk/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/staging/perl-tk/PKGBUILD b/staging/perl-tk/PKGBUILD new file mode 100644 index 000000000..2a80a320e --- /dev/null +++ b/staging/perl-tk/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 124660 2011-05-23 20:07:22Z remy $ +# Maintainer: François Charette <francois ατ archlinux δοτ org> +# Contributor: Jason Chu <jchu@xentac.net> +# Contributor: Juergen Hoetzel <juergen@archlinux.org> + +pkgname=perl-tk +_cpanname=Tk +pkgver=804.029 +pkgrel=3 +pkgdesc="A graphical user interface toolkit for Perl" +arch=('i686' 'x86_64') +url="http://search.cpan.org/dist/${_cpanname}" +license=('PerlArtistic' 'GPL' 'custom') +depends=('libx11' 'libpng' 'libjpeg' 'tk' 'perl') +options=('!emptydirs') +replaces=('perltk') +provides=('perltk') +source=(http://www.cpan.org/authors/id/S/SR/SREZIC/${_cpanname}-${pkgver}.tar.gz) +md5sums=('f4aebe6fcdb309a8480514f2ccf8117c') + +build() { + cd $srcdir/${_cpanname}-$pkgver + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + /bin/chmod -R u+w * + # The Xlib header is wrong... + sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' pTk/Xlib.h + make +} + +#check() { +# cd $srcdir/${_cpanname}-$pkgver +# make test +#} + +package() { + cd $srcdir/${_cpanname}-$pkgver + make install DESTDIR=$pkgdir + + # license + install -D -m644 pTk/license.terms \ + ${startdir}/pkg/usr/share/licenses/${pkgname}/tk.license + install -D -m644 pTk/Tix.license \ + ${startdir}/pkg/usr/share/licenses/${pkgname}/tix.license +} |