diff options
author | Jaroslav Lichtblau | 2014-11-28 20:17:14 +0100 |
---|---|---|
committer | Jaroslav Lichtblau | 2014-11-28 20:17:14 +0100 |
commit | 98f574412f865c4ec31a917fb17b81d9288e20d3 (patch) | |
tree | 5524b3e41c4bf0c4ae48b883a9739c4ac9fb5f14 | |
download | aur-98f574412f865c4ec31a917fb17b81d9288e20d3.tar.gz |
Initial PKGBUILD status as of 28.11.2014
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | Makefile.in.patch | 7 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | moon-buggy.install | 22 |
4 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7875f15254b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = moon-buggy + pkgdesc = Moon Buggy is a simple game for the text mode + pkgver = 1.0.51 + pkgrel = 1 + url = http://seehuhn.de/comp/moon-buggy + install = moon-buggy.install + arch = i686 + arch = x86_64 + license = GPL2 + depends = ncurses + options = !emptydirs + source = http://seehuhn.de/data/moon-buggy-1.0.51.tar.gz + source = Makefile.in.patch + md5sums = bfe23ef5cfa838ac261eee34ea5322f3 + md5sums = 8c8cb8a25e12f574243778dac8e376a1 + +pkgname = moon-buggy + diff --git a/Makefile.in.patch b/Makefile.in.patch new file mode 100644 index 000000000000..9f7ae71687b2 --- /dev/null +++ b/Makefile.in.patch @@ -0,0 +1,7 @@ +--- Makefile.in.orig 2006-03-19 20:24:50.000000000 +0100 ++++ Makefile.in 2012-01-08 18:00:29.000000000 +0100 +@@ -863,3 +863,3 @@ + fi +- $(DESTDIR)$(bindir)/moon-buggy -c ++ # $(DESTDIR)$(bindir)/moon-buggy -c + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b6fa01b877b4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Dale Blount <dale@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=moon-buggy +pkgver=1.0.51 +pkgrel=1 +pkgdesc="Moon Buggy is a simple game for the text mode" +arch=('i686' 'x86_64') +url="http://seehuhn.de/comp/moon-buggy" +license=('GPL2') +depends=('ncurses') +options=('!emptydirs') +install=$pkgname.install +source=(http://seehuhn.de/data/$pkgname-$pkgver.tar.gz Makefile.in.patch) +md5sums=('bfe23ef5cfa838ac261eee34ea5322f3' + '8c8cb8a25e12f574243778dac8e376a1') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + patch -Np0 -i ${srcdir}/Makefile.in.patch + + ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info + make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + + make DESTDIR=${pkgdir} install + + rm ${pkgdir}/usr/share/info/dir +} diff --git a/moon-buggy.install b/moon-buggy.install new file mode 100644 index 000000000000..ea4f5b7be74c --- /dev/null +++ b/moon-buggy.install @@ -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: |