[arch-commits] Commit in moon-buggy/trunk (PKGBUILD moon-buggy.install)

Allan McRae allan at archlinux.org
Sat Jun 6 05:57:51 EDT 2009


    Date: Saturday, June 6, 2009 @ 05:57:51
  Author: allan
Revision: 41658

upgpkg: moon-buggy 1.0-3
    add info install (FS#14890)

Added:
  moon-buggy/trunk/moon-buggy.install
Modified:
  moon-buggy/trunk/PKGBUILD

--------------------+
 PKGBUILD           |   13 ++++++++-----
 moon-buggy.install |   22 ++++++++++++++++++++++
 2 files changed, 30 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-06-06 09:53:18 UTC (rev 41657)
+++ PKGBUILD	2009-06-06 09:57:51 UTC (rev 41658)
@@ -4,21 +4,24 @@
 
 pkgname=moon-buggy
 pkgver=1.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Moon Buggy is a simple game for the text mode"
 arch=('i686' 'x86_64')
 depends=('ncurses')
 url="http://seehuhn.de/comp/moon-buggy"
 license=('GPL2')
+options=(!emptydirs)
+install=moon-buggy.install
 source=(http://seehuhn.de/data/$pkgname-$pkgver.tar.gz Makefile.in.patch)
 md5sums=('4da97ea40eca686f6f8b164d8b927e38' 'deddd0d5b65235911bc9ab36b0707580')
-options=(!emptydirs)
 
 build() {
-	cd $startdir/src/$pkgname-$pkgver
-	patch -p0 < $startdir/src/Makefile.in.patch
+	cd $srcdir/$pkgname-$pkgver
+	patch -Np0 -i $srcdir/Makefile.in.patch
 	./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
 	make || return 1
-	make DESTDIR=$startdir/pkg install || return 1
+	make DESTDIR=$pkgdir install || return 1
+	
 	rm ${pkgdir}/usr/share/info/dir
+	gzip -9 ${pkgdir}/usr/share/info/*
 }

Added: moon-buggy.install
===================================================================
--- moon-buggy.install	                        (rev 0)
+++ moon-buggy.install	2009-06-06 09:57:51 UTC (rev 41658)
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(moon-buggy.info)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list