[arch-commits] Commit in nppangband/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Giovanni Scafora giovanni at archlinux.org
Sun Nov 1 11:15:41 UTC 2009


    Date: Sunday, November 1, 2009 @ 06:15:41
  Author: giovanni
Revision: 57654

Merged revisions 57634 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/nppangband/trunk

........
  r57634 | james | 2009-11-01 00:42:51 -0700 (dom, 01 nov 2009) | 2 lines
  
  upgpkg: nppangband 0.5.0.25-1
      new version, FS#12817, 15543, 16921
........

Modified:
  nppangband/repos/extra-x86_64/	(properties)
  nppangband/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)


Property changes on: nppangband/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /nppangband/trunk:1-46699
   + /nppangband/trunk:1-57653

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2009-11-01 10:31:59 UTC (rev 57653)
+++ extra-x86_64/PKGBUILD	2009-11-01 11:15:41 UTC (rev 57654)
@@ -2,31 +2,39 @@
 # Maintainer: James Rayner <iphitus at gmail.com>
 
 pkgname=nppangband
-pkgver=0.5b6.22
+pkgver=0.5.0.25
 pkgrel=1
 pkgdesc="A variant of Angband that attempts to take popular ideas from other variants"
-url="http://members.cox.net/nppangband/"
-depends=('ncurses' 'libxaw')
-#source=(http://members.cox.net/nppangband/NPPAngband-0.4.1-Source.zip)
-source=(http://www.assembla.com/spaces/NPPAngband/documents/dSR9yW1NKr3BWZab7jnrAJ/download/npp5beta6-src-rev22.zip \
-        Makefile.std)
-
+url="http://www.assembla.com/wiki/show/NPPAngband"
+depends=('ncurses' 'libx11')
+source=(http://www.assembla.com/spaces/NPPAngband/documents/dmfeFgWJir3PuseJe5afGb/download/npp050-rev25-src.zip)
 license=('custom')
 arch=('i686' 'x86_64')
 
 build() {
 
-  cd $srcdir/npp5beta6-src-rev22/src/
+  cd $srcdir/npp050-rev25-src/src
   sed 's@# define DEFAULT_PATH "./lib/"@# define DEFAULT_PATH "/usr/share/nppangband/"@' -i config.h
-  cp $srcdir/Makefile.std ./
+  sed -i 's/-D"USE_LFB"//g' Makefile.std # Remove framebuffer support, does not compile, 
   make -f Makefile.std
+
+
+  # Fix fonts
+  cd ../lib/xtra/font/
+  tr -d '\r' < compile_bdf_fonts.sh > compile_bdf_fonts2.sh # Convert line endings dos->unix
+  sed -i "s/\.bdf/\.bdf;/g" compile_bdf_fonts2.sh # fix syntax error, missing ;.
+  bash compile_bdf_fonts2.sh # no shebang, use bash explicitly
+
+  # Install
+  cd $srcdir/npp050-rev25-src/
   mkdir -p $pkgdir/usr/bin $pkgdir/usr/share
-  install -m755 nppangband $pkgdir/usr/bin/nppangband
-  cp -R $srcdir/npp5beta6-src-rev22/lib $pkgdir/usr/share/nppangband/
-  chmod -R 775 $pkgdir/usr/share/nppangband/
+  cp -R lib $pkgdir/usr/share/nppangband/
+  chmod -R 775 $pkgdir/usr/share/nppangband/    
   chown -R root:games $pkgdir/usr/share/nppangband/
+  install -m755 src/nppangband $pkgdir/usr/bin/nppangband
 
   # install custom license
-  install -Dm644 $srcdir/npp5beta6-src-rev22/COPYING \
-  	$pkgdir/usr/share/licenses/$pkgname/COPYING
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
 }
+
+md5sums=('776d387ccbca31edf7eb30eb1402b0c9')




More information about the arch-commits mailing list