diff options
author | Brian Bidulock | 2017-06-09 16:25:53 -0600 |
---|---|---|
committer | Brian Bidulock | 2017-06-09 16:25:53 -0600 |
commit | ddf4dfb58d2d3183cb59d364f65727c904e2d50a (patch) | |
tree | 683048011d4b5bff229f36103c173134da54c5a0 | |
parent | 31f9b3d1ffc7992212fa9c511b2637bddcebf35b (diff) | |
download | aur-ddf4dfb58d2d3183cb59d364f65727c904e2d50a.tar.gz |
updates for perl 5.26.0 with template
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 39 insertions, 10 deletions
@@ -3,34 +3,63 @@ # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com> pkgname=perl-gnome2-wnck+ +_cpanname=Gnome2-Wnck pkgver=0.16 -pkgrel=7 +pkgrel=9 pkgdesc="Perl interface to the Window Navigator Construction Kit (improved)" arch=('i686' 'x86_64') license=("GPL" "PerlArtistic") -url="http://search.cpan.org/dist/Gnome2-Wnck" +url="http://search.cpan.org/dist/${_cpanname}" provides=('perl-gnome2-wnck') conflicts=('perl-gnome2-wnck') depends=('gtk2-perl' 'libwnck+') -makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig') +makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig' +'perl-class-load-xs' +'perl-class-xsaccessor' +'perl-json-xs' +'perl-module-build-xsutil' +'perl-package-stash-xs' +'perl-text-csv-xs' +'perl-xs-object-magic' +) options=('!emptydirs') -source=("http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gnome2-Wnck-${pkgver}.tar.gz" +source=("http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/${_cpanname}-${pkgver}.tar.gz" "libwnck+.patch") md5sums=('439f4569ffd7af96ef1d3feaab23760e' 'ae7baf7c409334354d2aaa244ff316f7') prepare() { - cd Gnome2-Wnck-${pkgver} + cd ${_cpanname}-${pkgver} patch -Np2 -b -z .orig <../libwnck+.patch } build() { - cd Gnome2-Wnck-${pkgver} - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor - make + cd ${_cpanname}-${pkgver} + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + /usr/bin/perl Makefile.PL + sed -i -e 's,q(build/doc.pl),q(./build/doc.pl),' Makefile + make + ) +} + +_perl_depends() { +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; } package() { - cd Gnome2-Wnck-${pkgver} - make install DESTDIR=${pkgdir} + cd ${_cpanname}-${pkgver} + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + _perl_depends } |