summaryrefslogtreecommitdiff
path: root/community/gnubg
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/gnubg
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/gnubg')
-rw-r--r--community/gnubg/PKGBUILD37
-rw-r--r--community/gnubg/gnubg.desktop19
-rw-r--r--community/gnubg/gnubg.install11
3 files changed, 67 insertions, 0 deletions
diff --git a/community/gnubg/PKGBUILD b/community/gnubg/PKGBUILD
new file mode 100644
index 000000000..8b113c594
--- /dev/null
+++ b/community/gnubg/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: jsteel <jsteel@aur.archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+# Contributor: Stefan Clarke <fm0nk3y@yahoo.co.uk>
+
+pkgname=gnubg
+pkgver=1.02.000
+pkgrel=1
+pkgdesc="A world class backgammon application"
+arch=('i686' 'x86_64')
+url="http://www.gnubg.org"
+license=('GPL')
+depends=('python2' 'gtkglext' 'hicolor-icon-theme')
+install=$pkgname.install
+source=($url/media/sources/$pkgname-release-$pkgver-sources.tar.gz
+ $pkgname.desktop)
+md5sums=('eef4d08e20f1de40336de1bb3c9cb9ca'
+ '965f5c7c25f60b27d06cc6fef7befd30')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ ./autogen.sh
+
+ ./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc \
+ --mandir=/usr/share/man
+
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ make DESTDIR="$pkgdir"/ install
+
+ install -Dm644 "$srcdir"/$pkgname.desktop \
+ "$pkgdir"/usr/share/applications/$pkgname.desktop
+}
diff --git a/community/gnubg/gnubg.desktop b/community/gnubg/gnubg.desktop
new file mode 100644
index 000000000..a0d3ba75d
--- /dev/null
+++ b/community/gnubg/gnubg.desktop
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Name=GNU Backgammon
+Name[hr]=GNU Tavla
+Name[ru]=GNU Нарды
+Name[sr]=ГНУ Тавла
+GenericName=Backgammon
+GenericName[hr]=Tavla
+GenericName[ru]=Нарды
+GenericName[sr]=Тавла
+Comment=GNU Backgammon
+Comment[hr]=GNU Tavla
+Comment[ru]=GNU Короткие нарды
+Comment[sr]=GNU Тавла
+Exec=gnubg
+Icon=gnubg
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=GTK;Game;StrategyGame;
diff --git a/community/gnubg/gnubg.install b/community/gnubg/gnubg.install
new file mode 100644
index 000000000..1a05f573e
--- /dev/null
+++ b/community/gnubg/gnubg.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}