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

Andrea Scarpino andrea at archlinux.org
Wed Jan 5 10:43:14 EST 2011


    Date: Wednesday, January 5, 2011 @ 10:43:14
  Author: andrea
Revision: 104937

upgpkg: gnupod 0.99.8-2
switch to arch any; remove deprecated startdir referencies

Modified:
  gnupod/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++++++++++++---------------------
 1 file changed, 18 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-01-05 15:35:03 UTC (rev 104936)
+++ PKGBUILD	2011-01-05 15:43:14 UTC (rev 104937)
@@ -1,37 +1,34 @@
 # $Id$
 # Maintainer: James Rayner <iphitus at gmail.com>
 # Contributor: Tom K <tomk at runbox.com>
+
 pkgname=gnupod
 pkgver=0.99.8
-pkgrel=1
-pkgdesc="a collection of Perl-Scripts which allow you to use your iPod under GNU/Linux "
-arch=(i686 x86_64)
+pkgrel=2
+pkgdesc="A collection of Perl-Scripts which allow you to use your iPod under GNU/Linux"
+url="http://www.gnu.org/software/gnupod/"
+arch=('any')
 license=("GPL3")
 depends=('perl-timedate' 'perl-digest-sha1' 'perl-mp3-info' 'perl-unicode-string' 'perlxml')
-source=(http://blinkenlights.ch/$pkgname-dist/stable/$pkgname-$pkgver.tgz)
+source=("http://blinkenlights.ch/$pkgname-dist/stable/$pkgname-$pkgver.tgz")
+md5sums=('978c9f813e6930b780e81eb30a742ebe')
 
-url="http://www.gnu.org/software/gnupod/"
+package() {
+  cd ${srcdir}/$pkgname-$pkgver
 
-build() {
-  cd $startdir/src/$pkgname-$pkgver
-
   #Create pkg dirs
-  mkdir -p $startdir/pkg/usr/bin $startdir/pkg/usr/share/man/man1 \
-  $startdir/pkg/usr/lib/perl5/vendor_perl/GNUpod
+  install -d ${pkgdir}/usr/bin
+  install -d ${pkgdir}/usr/share/man/man1
+  install -d ${pkgdir}/usr/lib/perl5/vendor_perl/GNUpod
 
   #Ignore brain-dead install script, and do the Arch thing
-  install -m 755 src/*.pl $startdir/pkg/usr/bin
-  install -m 644 man/* $startdir/pkg/usr/share/man/man1
-  install -m 444 src/ext/* $startdir/pkg/usr/lib/perl5/vendor_perl/GNUpod
+  install -m755 src/*.pl ${pkgdir}/usr/bin
+  install -m644 man/* ${pkgdir}/usr/share/man/man1
+  install -m444 src/ext/* ${pkgdir}/usr/lib/perl5/vendor_perl/GNUpod
 
   #Tidy up after ignoring brain-dead install script :P
-  cd /$startdir/pkg/usr/bin
-  for i in `ls` ;
-  do sed -i "s:##__PERLBIN__###:\!/usr/bin/perl:;s:###__VERSION__###:$pkgver:" $i ;
+  cd ${pkgdir}/usr/bin
+  for i in `ls`; do
+    sed -i "s:##__PERLBIN__###:\!/usr/bin/perl:;s:###__VERSION__###:$pkgver:" $i ;
   done
 }
-
-
-
-
-md5sums=('978c9f813e6930b780e81eb30a742ebe')



More information about the arch-commits mailing list