Date: Thursday, September 22, 2016 @ 15:09:44
  Author: arodseth
Revision: 190159

upgpkg: bsd-games 2.17-17

Modified:
  bsd-games/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-22 14:54:15 UTC (rev 190158)
+++ PKGBUILD    2016-09-22 15:09:44 UTC (rev 190159)
@@ -1,19 +1,21 @@
 # $Id$
-# Maintainer: Chris Brannon <cmbranno...@gmail.com>
+# Maintainer: Laurent Carlier <lordhea...@gmail.com>
+# Contributor: Alexander F Rødseth <xypr...@archlinux.org>
+# Contributor: Chris Brannon <cmbranno...@gmail.com>
 # Contributor: Abhishek Dasgupta <abh...@gmail.com>
 # Contributor: SmackleFunky <smacklefu...@optusnet.com.au>
 
 pkgname=bsd-games
 pkgver=2.17
-pkgrel=16
-pkgdesc="A linux port for a collection of BSD command line games."
-url="http://ftp.ibiblio.org/pub/Linux/games/";
-arch=('i686' 'x86_64')
-install=$pkgname.install
+pkgrel=17
+pkgdesc='Linux port of the collection of BSD command line games'
+url='http://ibiblio.org/pub/linux/games/'
+arch=('x86_64' 'i686')
+install="$pkgname.install"
 license=('BSD')
-depends=(gcc-libs words sh)
+depends=('gcc-libs' 'words' 'sh')
 makedepends=('flex' 'bison' 'm4')
-source=(http://ftp.ibiblio.org/pub/Linux/games/$pkgname-$pkgver.tar.gz
+source=("http://ibiblio.org/pub/linux/games/$pkgname-$pkgver.tar.gz";
         config.params stdio.h.diff gamescreen.h.diff getline.diff
         number.c.diff bsd-games-2.17-64bit.patch
         bad-ntohl-cast.diff null-check.diff)
@@ -28,7 +30,7 @@
          'a43ca0b4b9ebc4eec26372c52014ac0a')
 
 prepare() {
-  cd "${srcdir}/$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
 
   [ "$CARCH" = "x86_64" ] && patch -p1 < "$srcdir/bsd-games-2.17-64bit.patch"
   cp "${srcdir}/config.params" .
@@ -42,11 +44,11 @@
   patch -p1 -i "${srcdir}/stdio.h.diff"
   patch -p1 -i "${srcdir}/gamescreen.h.diff"
 
-# Incorporated some fixes from Debian
+  # Incorporated some fixes from Debian
   patch -p1 -i "${srcdir}/number.c.diff"
-# ntohl returns uint32_t, not unsigned long:
+  # ntohl returns uint32_t, not unsigned long:
   patch -p1 -i "${srcdir}/bad-ntohl-cast.diff"
-# And add a NULL pointer check to the "hunt" program, fixing a segfault.
+  # And add a NULL pointer check to the "hunt" program, fixing a segfault.
   patch -p1 -i "${srcdir}/null-check.diff"
 
   sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6
@@ -67,7 +69,7 @@
 }
 
 build() {
-  cd "${srcdir}/$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
 
   ./configure
   make
@@ -74,13 +76,14 @@
 }
 
 package() {
-  cd "${srcdir}/$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+
   sed -i "s%PKGDIR%$pkgdir%g" hide-game install-man install-score Makeconfig 
subst.sed
   make install
   # This make install command does install to $pkgdir, because of the
   # change to config.params in the build function.
 
-# Fix permissions
+  # Fix permissions
   rmdir "${pkgdir}/tmp"
   install -dm755  "${pkgdir}/usr/share/bsdgames/data/hack/save"
   chown -R root:games "${pkgdir}/var/lib/bsdgames"
@@ -88,17 +91,18 @@
   chmod 664 "${pkgdir}"/var/lib/bsdgames/{hack,phantasia}/*
   chmod 775 "${pkgdir}"/var/lib/bsdgames/{hack,phantasia}
 
-# Remove conflict with xscreensaver and fish
+  # Remove conflict with xscreensaver and fish
   mv "${pkgdir}/usr/bin/fish" "${pkgdir}/usr/bin/go-fish"
   mv "${pkgdir}/usr/share/man/man6/fish.6.gz" 
"${pkgdir}/usr/share/man/man6/go-fish.6.gz"
   mv "${pkgdir}/usr/share/man/man6/worm.6.gz" \
     "${pkgdir}/usr/share/man/man6/worm-game.6.gz"
 
-# Install documentation and license
+  # Install documentation and license
   install -dm755 "$pkgdir/usr/share/doc/bsd-games"
   install -m644 AUTHORS NEWS BUGS ChangeLog "$pkgdir/usr/share/doc/$pkgname" \
-   
+
   rm "${pkgdir}/usr/share/doc/trek.me"
   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/COPYING"
 }
 
+# vim:set ts=2 sw=2 et:

Reply via email to