[arch-commits] Commit in snes9x/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Sun Apr 28 06:02:29 UTC 2013


    Date: Sunday, April 28, 2013 @ 08:02:28
  Author: eric
Revision: 89217

upgpkg: snes9x 1.53-6

Rebuild against libpng 1.6

Modified:
  snes9x/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-28 05:46:33 UTC (rev 89216)
+++ PKGBUILD	2013-04-28 06:02:28 UTC (rev 89217)
@@ -4,7 +4,7 @@
 pkgbase=snes9x
 pkgname=('snes9x' 'snes9x-gtk')
 pkgver=1.53
-pkgrel=5
+pkgrel=6
 arch=('i686' 'x86_64')
 url="https://code.google.com/p/snes9x-gtk/"
 license=('custom')
@@ -15,14 +15,17 @@
 sha1sums=('57be6480369f66b9aaaeb722789ce114f58ed1e2'
           '680dbe0a70f1821bc7931539e72f5a1a95e3938c')
 
+prepare() {
+  cd ${pkgbase}-${pkgver}-src
+  patch -p1 -i "${srcdir}/snes9x-gtk2.24.diff"
+}
+
 build() {
-  cd "${srcdir}/${pkgbase}-${pkgver}-src"
-  patch -p1 -i "${srcdir}/snes9x-gtk2.24.diff"
-  cd unix
+  cd ${pkgbase}-${pkgver}-src/unix
   ./configure --prefix=/usr --with-sdd1-decomp --enable-netplay
   make
 
-  cd "${srcdir}/${pkgbase}-${pkgver}-src/gtk"
+  cd ../gtk
   ./configure --prefix=/usr --with-sdd1-decomp --with-netplay --with-opengl
   make
 }
@@ -31,7 +34,7 @@
   pkgdesc="A portable Emulator for the Super Nintendo Entertainment System"
   depends=('gcc-libs' 'libpng' 'libxext' 'libsm')
 
-  cd "${srcdir}/${pkgbase}-${pkgver}-src/unix"
+  cd ${pkgbase}-${pkgver}-src/unix
   install -D -m755 snes9x "${pkgdir}/usr/bin/snes9x"
   install -d "${pkgdir}/usr/share/doc/${pkgname}"
   install -D -m644 ../docs/{snes9x.conf.default,{control-inputs,controls,snapshots}.txt} \
@@ -46,7 +49,7 @@
   depends=('sdl' 'libgl' 'libpulse' 'gtk2' 'libxv' 'desktop-file-utils' 'gnome-icon-theme')
   install=snes9x-gtk.install
 
-  cd "${srcdir}/${pkgbase}-${pkgver}-src/gtk"
+  cd ${pkgbase}-${pkgver}-src/gtk
   make DESTDIR="${pkgdir}" install
   install -d "${pkgdir}/usr/share/doc/${pkgname}"
   install -D -m644 ../docs/{snes9x.conf.default,{control-inputs,controls,snapshots}.txt} \




More information about the arch-commits mailing list