summaryrefslogtreecommitdiff
path: root/community/dopewars
diff options
context:
space:
mode:
Diffstat (limited to 'community/dopewars')
-rw-r--r--community/dopewars/PKGBUILD31
1 files changed, 16 insertions, 15 deletions
diff --git a/community/dopewars/PKGBUILD b/community/dopewars/PKGBUILD
index 4433977cc..4116a23d3 100644
--- a/community/dopewars/PKGBUILD
+++ b/community/dopewars/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 51778 2011-07-14 18:25:43Z schuay $
+# $Id: PKGBUILD 54061 2011-08-13 02:36:39Z ebelanger $
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: Thayer Williams <thayer@archlinux.org>
@@ -6,41 +6,42 @@
pkgname=dopewars
pkgver=1.5.12
-pkgrel=5
+pkgrel=6
pkgdesc="A drug dealing game set in New York"
url="http://dopewars.sourceforge.net/"
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
-depends=('gtk2' 'alsa-lib' 'audiofile' 'esd' 'sdl_mixer' 'ncurses')
+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
+ cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --localstatedir=/var/games \
--mandir=/usr/share/man
make
}
+
package() {
- cd $srcdir/$pkgname-$pkgver
+ cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR=$pkgdir install
+ 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
+ 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
+ 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
+ rm "$pkgdir/var/games/dopewars.sco"
}