[arch-commits] Commit in perl-gd/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Wed May 3 17:06:11 UTC 2017


    Date: Wednesday, May 3, 2017 @ 17:06:11
  Author: spupykin
Revision: 226690

upgpkg: perl-gd 2.66-1

Modified:
  perl-gd/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++----------------
 1 file changed, 13 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-03 17:06:04 UTC (rev 226689)
+++ PKGBUILD	2017-05-03 17:06:11 UTC (rev 226690)
@@ -3,35 +3,32 @@
 # Contributor: Sergej Pupykin <pupykin.s+aur at gmail.com>
 
 pkgname=perl-gd
-pkgver=2.56
-pkgrel=5
+pkgver=2.66
+pkgrel=1
 pkgdesc="Interface to Gd Graphics Library"
 arch=('i686' 'x86_64')
 url="http://search.cpan.org/dist/GD"
 license=('GPL' 'PerlArtistic')
 depends=('gd')
-makedepends=('perl-module-build')
+makedepends=('perl-extutils-pkgconfig')
 options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/L/LD/LDS/GD-$pkgver.tar.gz)
-md5sums=('c4b3afd98b2c4ce3c2e1027d101a8f1e')
+source=(http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/GD-$pkgver.tar.gz)
+sha256sums=('ea28343301b82ea862bc58c0c2d1953a074e23cf8d1d09df94c05c52f1c98281')
 
-prepare() {
-  chmod -R u+w "$srcdir"/GD-$pkgver
-}
+build() {
+  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
+    PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
+    PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
+    MODULEBUILDRC=/dev/null
 
-build() {
   cd  "$srcdir"/GD-$pkgver
-  perl Build.PL installdirs=vendor destdir="$pkgdir/"
-  perl Build
+  perl Makefile.PL
+  make
 }
 
 package() {
   cd  "$srcdir"/GD-$pkgver
-  perl Build install
-  [ -f "$pkgdir"/usr/bin/vendor_perl/README ] && \
-    (mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ && mv "$pkgdir"/usr/bin/vendor_perl/README "$pkgdir"/usr/share/doc/$pkgname/)
-  find "$pkgdir" -name '.packlist' -delete
-  find "$pkgdir" -name '*.pod' -delete
+  make install
 # 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]);')



More information about the arch-commits mailing list