summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSanskritFritz2016-05-05 20:51:18 +0200
committerSanskritFritz2016-05-05 20:51:18 +0200
commit4874ad66bfd22a8a41d4d2384567111d3c34194c (patch)
tree3bd094c2411872df5ba51ef601bd1cdf076e50c4 /PKGBUILD
downloadaur-4874ad66bfd22a8a41d4d2384567111d3c34194c.tar.gz
Initial version.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..de1eff67e94
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Contributor: Simon Bachmann <simonbachmann@freesurf.ch>
+# Maintainer: Anton Larionov <diffident dot cat at gmail dot com>
+# Maintainer: SanskritFritz (gmail)
+
+pkgname=mirrormagic-bin
+_pkgname=mirrormagic
+pkgver=2.0.2
+pkgrel=1
+pkgdesc="Arcade style game like Deflektor (C64) or Mindbender (Amiga)."
+arch=('i686' 'x86_64')
+url="http://www.artsoft.org/mirrormagic/"
+license=('GPL2')
+depends=('sdl_image' 'sdl_mixer')
+
+source=("http://www.artsoft.org/RELEASES/unix/mirrormagic/$_pkgname-$pkgver.tar.gz"
+ "$_pkgname.sh"
+ "mirrormagic.desktop")
+
+md5sums=('32fd3909c1e27f493d89bc2276da6744'
+ '7ba2849d0c79415dabc3068ca9d7b5ba'
+ '64ebdbe659a2fd5efd3979350cf9bbec')
+
+package() {
+ cd "$_pkgname-$pkgver"
+
+ # copy main files
+ install -dm755 "$pkgdir/usr/share/$_pkgname"
+ cp -r * "$pkgdir/usr/share/$_pkgname"
+
+ install -D -m755 "$srcdir/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"
+
+ # install desktop entry file
+ install -D -m644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
+
+ # fix permissions
+ cd "$pkgdir/usr/share/$_pkgname/"
+ find . -type f -exec chmod 644 {} \;
+ chmod 755 $_pkgname
+}
+
+# vim:set ts=2 sw=2 et: