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

Allan McRae allan at archlinux.org
Sat Jun 20 05:46:06 EDT 2009


    Date: Saturday, June 20, 2009 @ 05:46:06
  Author: allan
Revision: 43148

upgpkg: ratpoison 1.4.3-3
    readline rebuild, PKGBUILD tidy up

Modified:
  ratpoison/trunk/PKGBUILD

----------+
 PKGBUILD |   41 ++++++++++++++++++++++++-----------------
 1 file changed, 24 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-06-20 02:40:04 UTC (rev 43147)
+++ PKGBUILD	2009-06-20 09:46:06 UTC (rev 43148)
@@ -4,31 +4,38 @@
 
 pkgname=ratpoison
 pkgver=1.4.3
-pkgrel=2
+pkgrel=3
 pkgdesc="A simple keystroke-driven window manager"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 license=('GPL')
 depends=('libxinerama' 'readline' 'bash' 'perl' 'libxtst')
 url="http://www.nongnu.org/ratpoison/"
-source=(http://savannah.nongnu.org/download/ratpoison/$pkgname-$pkgver.tar.gz $pkgname.desktop)
-md5sums=('c1899e3e2549d29825cdb1b8d042c836' '29c3cb9be59758e39d8471391231a74a')
+source=(http://savannah.nongnu.org/download/ratpoison/$pkgname-$pkgver.tar.gz
+        $pkgname.desktop)
+md5sums=('c1899e3e2549d29825cdb1b8d042c836'
+         '29c3cb9be59758e39d8471391231a74a')
 
 build() {
-  cd $startdir/src/${pkgname}-${pkgver}
-  find . -exec touch \{\} \; 	# fix timestamp issue
-  /bin/mkdir -p $startdir/pkg/etc/X11/sessions
+  cd $srcdir/${pkgname}-${pkgver}
+
+  # fix timestamp issue
+  find . -exec touch \{\} \;
+  
   ./configure --prefix=/usr
-  /usr/bin/make || return 1
-  pushd contrib
+  make || return 1
+  make DESTDIR=$pkgdir install
+
+  # fix permissions
+  chmod a+x $pkgdir/usr/share/ratpoison/{allwindows.sh,clickframe.pl,rpshowall.sh,rpws,split.sh}
+
+  cd contrib
   ./genrpbindings || return 1
-  install -d $startdir/pkg/usr/share/ratpoison/bindings
-  install  -m 644 {Ratpoison.pm,ratpoison-cmd.el,ratpoison.rb,ratpoison.lisp,ratpoison.py} \
-			$startdir/pkg/usr/share/ratpoison/bindings/ || return 1
-	popd
-  /usr/bin/make DESTDIR=$startdir/pkg install
-	# fix permissions
-	chmod a+x $startdir/pkg/usr/share/ratpoison/{allwindows.sh,clickframe.pl,rpshowall.sh,rpws,split.sh}
-  /bin/cp $startdir/src/$pkgname.desktop $startdir/pkg/etc/X11/sessions
+  install -dm755 $pkgdir/usr/share/ratpoison/bindings
+  install -m644 {Ratpoison.pm,ratpoison-cmd.el,ratpoison.rb,ratpoison.lisp,ratpoison.py} \
+			$pkgdir/usr/share/ratpoison/bindings/ || return 1
+        
+  install -Dm755 $srcdir/$pkgname.desktop $pkgdir/etc/X11/sessions/$pkgname.desktop
   rm ${pkgdir}/usr/share/info/dir
 }
+
 # vim: ts=2 sw=2 et ft=sh



More information about the arch-commits mailing list