[arch-commits] Commit in dopewars/repos (6 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Sep 10 02:44:52 UTC 2015


    Date: Thursday, September 10, 2015 @ 04:44:51
  Author: foutrelis
Revision: 139718

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  dopewars/repos/community-staging-i686/
  dopewars/repos/community-staging-i686/PKGBUILD
    (from rev 139717, dopewars/trunk/PKGBUILD)
  dopewars/repos/community-staging-i686/dopewars.install
    (from rev 139717, dopewars/trunk/dopewars.install)
  dopewars/repos/community-staging-x86_64/
  dopewars/repos/community-staging-x86_64/PKGBUILD
    (from rev 139717, dopewars/trunk/PKGBUILD)
  dopewars/repos/community-staging-x86_64/dopewars.install
    (from rev 139717, dopewars/trunk/dopewars.install)

-------------------------------------------+
 community-staging-i686/PKGBUILD           |   47 ++++++++++++++++++++++++++++
 community-staging-i686/dopewars.install   |   20 +++++++++++
 community-staging-x86_64/PKGBUILD         |   47 ++++++++++++++++++++++++++++
 community-staging-x86_64/dopewars.install |   20 +++++++++++
 4 files changed, 134 insertions(+)

Copied: dopewars/repos/community-staging-i686/PKGBUILD (from rev 139717, dopewars/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-10 02:44:51 UTC (rev 139718)
@@ -0,0 +1,47 @@
+# $Id$
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+# Contributor: Jeff Mickey <jeff at archlinux.org>
+# Contributor: Thayer Williams <thayer at archlinux.org>
+# Maintainer: schuay <jakob.gruber at gmail.com
+
+pkgname=dopewars
+pkgver=1.5.12
+pkgrel=8
+pkgdesc="A drug dealing game set in New York"
+url="http://dopewars.sourceforge.net/"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('gtk2' 'alsa-lib' 'audiofile' 'sdl_mixer' 'ncurses')
+install='dopewars.install'
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
+md5sums=('debf749de9053dc2fb2e74c37ae06206')
+
+build() {
+    cd "$srcdir/$pkgname-$pkgver"
+
+    ./configure --prefix=/usr --localstatedir=/var/games \
+        --mandir=/usr/share/man
+    make
+}
+
+package() {
+    cd "$srcdir/$pkgname-$pkgver"
+
+    make DESTDIR="$pkgdir" install
+
+    # setup shortcut menu entries
+    mkdir -p "$pkgdir/usr/share/applications"
+    mv "$pkgdir/usr/share/gnome/apps/Games/dopewars.desktop" \
+       "$pkgdir/usr/share/applications"
+    rm -r "$pkgdir/usr/share/gnome"
+
+    # set appropriate permissions and destinations
+    chown root:games "$pkgdir/usr/bin/dopewars"
+    chmod 2755 "$pkgdir/usr/bin/dopewars"
+    chown root:games "$pkgdir/var/games"
+    chmod 775 "$pkgdir/var/games"
+
+    # Handle the scores file creation in the install script
+    rm "$pkgdir/var/games/dopewars.sco"
+}
+

Copied: dopewars/repos/community-staging-i686/dopewars.install (from rev 139717, dopewars/trunk/dopewars.install)
===================================================================
--- community-staging-i686/dopewars.install	                        (rev 0)
+++ community-staging-i686/dopewars.install	2015-09-10 02:44:51 UTC (rev 139718)
@@ -0,0 +1,20 @@
+post_install() {
+  if [ ! -e /var/games/dopewars.sco ]; then
+    mkdir -p /var/games
+    touch /var/games/dopewars.sco
+    chown root:games /var/games/dopewars.sco
+    chmod 664 /var/games/dopewars.sco
+  fi
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  if [ -e /var/games/dopewars.sco ]; then
+    rm /var/games/dopewars.sco
+  fi
+}
+
+# vim:set ts=2 sw=2 et:

Copied: dopewars/repos/community-staging-x86_64/PKGBUILD (from rev 139717, dopewars/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-10 02:44:51 UTC (rev 139718)
@@ -0,0 +1,47 @@
+# $Id$
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+# Contributor: Jeff Mickey <jeff at archlinux.org>
+# Contributor: Thayer Williams <thayer at archlinux.org>
+# Maintainer: schuay <jakob.gruber at gmail.com
+
+pkgname=dopewars
+pkgver=1.5.12
+pkgrel=8
+pkgdesc="A drug dealing game set in New York"
+url="http://dopewars.sourceforge.net/"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('gtk2' 'alsa-lib' 'audiofile' 'sdl_mixer' 'ncurses')
+install='dopewars.install'
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
+md5sums=('debf749de9053dc2fb2e74c37ae06206')
+
+build() {
+    cd "$srcdir/$pkgname-$pkgver"
+
+    ./configure --prefix=/usr --localstatedir=/var/games \
+        --mandir=/usr/share/man
+    make
+}
+
+package() {
+    cd "$srcdir/$pkgname-$pkgver"
+
+    make DESTDIR="$pkgdir" install
+
+    # setup shortcut menu entries
+    mkdir -p "$pkgdir/usr/share/applications"
+    mv "$pkgdir/usr/share/gnome/apps/Games/dopewars.desktop" \
+       "$pkgdir/usr/share/applications"
+    rm -r "$pkgdir/usr/share/gnome"
+
+    # set appropriate permissions and destinations
+    chown root:games "$pkgdir/usr/bin/dopewars"
+    chmod 2755 "$pkgdir/usr/bin/dopewars"
+    chown root:games "$pkgdir/var/games"
+    chmod 775 "$pkgdir/var/games"
+
+    # Handle the scores file creation in the install script
+    rm "$pkgdir/var/games/dopewars.sco"
+}
+

Copied: dopewars/repos/community-staging-x86_64/dopewars.install (from rev 139717, dopewars/trunk/dopewars.install)
===================================================================
--- community-staging-x86_64/dopewars.install	                        (rev 0)
+++ community-staging-x86_64/dopewars.install	2015-09-10 02:44:51 UTC (rev 139718)
@@ -0,0 +1,20 @@
+post_install() {
+  if [ ! -e /var/games/dopewars.sco ]; then
+    mkdir -p /var/games
+    touch /var/games/dopewars.sco
+    chown root:games /var/games/dopewars.sco
+    chmod 664 /var/games/dopewars.sco
+  fi
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  if [ -e /var/games/dopewars.sco ]; then
+    rm /var/games/dopewars.sco
+  fi
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list