summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Ascher2016-07-18 22:29:27 +0200
committerThomas Ascher2016-07-18 22:29:27 +0200
commit991c7c4c2249da8eb9bce54797769a6c49e16524 (patch)
treea95ea89923e48030f54ef3afa80b4597de1b4745
downloadaur-991c7c4c2249da8eb9bce54797769a6c49e16524.tar.gz
initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD41
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dee46f828b9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = gmastermind.app
+ pkgdesc = An implementation of the well-known Mastermind game.
+ pkgver = 0.6
+ pkgrel = 1
+ url = http://www.nongnu.org/gap/gmastermind/index.html
+ arch = i686
+ arch = x86_64
+ groups = gnustep
+ license = GPL
+ makedepends = gcc-objc
+ makedepends = gnustep-make
+ depends = gnustep-base
+ depends = gnustep-gui
+ source = http://savannah.nongnu.org/download/gap/GMastermind-0.6.tar.gz
+ sha256sums = 188bb6ebc30838af8e35b7a0bc1af32051ceb0a6011806ada0e7b77e2b07dea7
+
+pkgname = gmastermind.app
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..585f78e3894
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Thomas Ascher <thomas.ascher@gmx.at>
+# Contributor: Thomas Ascher <thomas.ascher@gmx.at>
+pkgname=gmastermind.app
+_pkgname=GMastermind
+pkgrel=1
+pkgver=0.6
+pkgdesc="An implementation of the well-known Mastermind game."
+arch=('i686' 'x86_64')
+url="http://www.nongnu.org/gap/gmastermind/index.html"
+license=('GPL')
+groups=('gnustep')
+depends=('gnustep-base'
+ 'gnustep-gui')
+makedepends=('gcc-objc'
+ 'gnustep-make')
+source=("http://savannah.nongnu.org/download/gap/$_pkgname-$pkgver.tar.gz")
+sha256sums=('188bb6ebc30838af8e35b7a0bc1af32051ceb0a6011806ada0e7b77e2b07dea7')
+
+build() {
+ cd "$_pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+ install -D -m644 "$pkgdir/usr/lib/GNUstep/Applications/$_pkgname.app/Resources/$_pkgname.desktop" \
+ "$pkgdir/usr/share/applications/$_pkgname.desktop"
+}
+
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}