diff options
Diffstat (limited to 'abs/core/perl_modules')
-rw-r--r-- | abs/core/perl_modules/perl-proc-processtable/PKGBUILD | 35 | ||||
-rw-r--r-- | abs/core/perl_modules/perl-tk/PKGBUILD | 44 |
2 files changed, 59 insertions, 20 deletions
diff --git a/abs/core/perl_modules/perl-proc-processtable/PKGBUILD b/abs/core/perl_modules/perl-proc-processtable/PKGBUILD new file mode 100644 index 0000000..8f5ffc1 --- /dev/null +++ b/abs/core/perl_modules/perl-proc-processtable/PKGBUILD @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@gmail.com> + +pkgname=perl-proc-processtable +pkgver=0.51 +pkgrel=1 +pkgdesc="Provides a consistent interface to process table information." +arch=('i686' 'x86_64') +url="http://search.cpan.org/dist/Proc-ProcessTable/" +license=('PerlArtistic') +depends=('perl') +provides=('perl-proc-killall' 'perl-proc-killfam' 'perl-proc-processtable-process') +options=(!emptydirs) +source=("http://search.cpan.org/CPAN/authors/id/J/JW/JWB/Proc-ProcessTable-$pkgver.tar.gz") +md5sums=('711238eb8ce7f5583ffef084d8facceb') + +build() { + cd "$srcdir/Proc-ProcessTable-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$srcdir/Proc-ProcessTable-$pkgver" + make test +} + +package() { + cd "$srcdir/Proc-ProcessTable-$pkgver" + + make install DESTDIR="${pkgdir}" + find "${pkgdir}" -name perllocal.pod -delete + find "${pkgdir}" -name .packlist -delete +} diff --git a/abs/core/perl_modules/perl-tk/PKGBUILD b/abs/core/perl_modules/perl-tk/PKGBUILD index 21efbdb..6d9a17a 100644 --- a/abs/core/perl_modules/perl-tk/PKGBUILD +++ b/abs/core/perl_modules/perl-tk/PKGBUILD @@ -1,44 +1,48 @@ # $Id$ -# Maintainer: François Charette <francois ατ archlinux δοτ org> +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: 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 +pkgver=804.032 pkgrel=3 pkgdesc="A graphical user interface toolkit for Perl" arch=('i686' 'x86_64') -url="http://search.cpan.org/dist/${_cpanname}" +url="http://search.cpan.org/dist/Tk" 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') +depends=('libpng' 'libjpeg' 'tk' 'perl') +options=('!emptydirs' '!strip') +source=(http://www.cpan.org/authors/id/S/SR/SREZIC/Tk-${pkgver}.tar.gz + https://github.com/eserte/perl-tk/commit/ba3a92a779f7adcf655b7e45b40ee5b0cb79bc8b.patch + https://github.com/eserte/perl-tk/commit/1ca4589ef5a87999ec564081900bc8fdaed83c74.patch) 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 + cd Tk-$pkgver + + # FS#40692 + patch -p1 -i ../1ca4589ef5a87999ec564081900bc8fdaed83c74.patch + patch -p1 -i ../ba3a92a779f7adcf655b7e45b40ee5b0cb79bc8b.patch + + perl Makefile.PL INSTALLDIRS=vendor make } #check() { -# cd $srcdir/${_cpanname}-$pkgver +# cd Tk-$pkgver # make test #} package() { - cd $srcdir/${_cpanname}-$pkgver - make install DESTDIR=$pkgdir + cd Tk-$pkgver + make install DESTDIR="$pkgdir" # license install -D -m644 pTk/license.terms \ - ${startdir}/pkg/usr/share/licenses/${pkgname}/tk.license + "${pkgdir}/usr/share/licenses/${pkgname}/tk.license" install -D -m644 pTk/Tix.license \ - ${startdir}/pkg/usr/share/licenses/${pkgname}/tix.license + "${pkgdir}/usr/share/licenses/${pkgname}/tix.license" } +md5sums=('47a84c70d1fd254ccece208303e6e9d5' + '27c00e07b221a41dd6113e677c15af5d' + 'ea4ef20075bfd7da735a87245feeb061') |