[arch-commits] CVS update of extra/system/perl-tk (PKGBUILD)

Kevin Piche kevin at archlinux.org
Thu Feb 28 03:58:41 UTC 2008


    Date: Wednesday, February 27, 2008 @ 22:58:41
  Author: kevin
    Path: /home/cvs-extra/extra/system/perl-tk

Modified: PKGBUILD (1.4 -> 1.5)

upgpkg: perl-tk 804.028-1
    Updated for new perl policy.  This is not an official release


----------+
 PKGBUILD |   49 ++++++++++++++++++++++++++++++++-----------------
 1 file changed, 32 insertions(+), 17 deletions(-)


Index: extra/system/perl-tk/PKGBUILD
diff -u extra/system/perl-tk/PKGBUILD:1.4 extra/system/perl-tk/PKGBUILD:1.5
--- extra/system/perl-tk/PKGBUILD:1.4	Tue May 30 13:31:15 2006
+++ extra/system/perl-tk/PKGBUILD	Wed Feb 27 22:58:41 2008
@@ -1,30 +1,45 @@
-# $Id: PKGBUILD,v 1.4 2006/05/30 17:31:15 ganja_guru Exp $
+# $Id: PKGBUILD,v 1.5 2008/02/28 03:58:41 kevin Exp $
 # Maintainer: Juergen Hoetzel <juergen at archlinux.org>
 # Contributor: Jason Chu <jchu at xentac.net>
 
 pkgname=perl-tk
-pkgver=804.027
-pkgrel=2
+_realname=Tk
+#stable pkgver=804.027
+pkgver=804.028
+pkgrel=1
 pkgdesc="This module/script allows perl to interface with tk"
+license=('PerlArtistic' 'GPL' 'custom')
 arch=(i686 x86_64)
-depends=('libx11' 'libpng' 'libjpeg' 'tk' 'perl>=5.8.7-1')
-source=(http://cpan.org/authors/id/N/NI/NI-S/Tk-804.027.tar.gz)
-md5sums=('d1ca4a6bff6dae4d937fabde4e86256b')
-url="http://search.cpan.org/author/NI-S/"
+depends=('libx11' 'libpng' 'libjpeg' 'tk' 'perl>=5.10.0')
+#
+# Using an "unauthorized" version because the official
+# release does not build under perl 5.10
+#source=(http://cpan.org/authors/id/N/NI/NI-S/${_realname}-${pkgver}.tar.gz)
+#
+source=(http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/${_realname}-${pkgver}.tar.gz)
+md5sums=('7153c1c411b0dd005a0660179e5c5900')
+url="http://search.cpan.org/dist/${_realname}/"
+options=(!emptydirs)
 replaces=('perltk')
 provides=('perltk')
 
 build() {
-  cd $startdir/src/Tk-$pkgver
-  /usr/bin/perl Makefile.PL
+  cd ${startdir}/src/${_realname}-${pkgver}
+
+  # install module in vendor directories.
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
   /bin/chmod -R u+w *
-  # ugly hack to make install location
-  # compatible with newer versions of perl.
-  # NOTE: if perl version changes from 5.8.5, change sed line too
-  /bin/sed -i "s:5.8.8:current:g" Makefile
-  /usr/bin/make || return 1 
-  /usr/bin/make DESTDIR=$startdir/pkg install
-  /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
-  /bin/rm $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi/auto/Tk/.packlist
+  make || return 1
+  make install DESTDIR=${startdir}/pkg || return 1
+
+  # remove perllocal.pod and .packlist
+  find ${startdir}/pkg -name perllocal.pod -delete
+  find ${startdir}/pkg -name .packlist -delete
+
+  # 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
 }
 # vim: ts=2 sw=2 et ft=sh




More information about the arch-commits mailing list