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

Maxime Gauduin alucryd at archlinux.org
Fri Mar 1 09:28:26 UTC 2019


    Date: Friday, March 1, 2019 @ 09:28:25
  Author: alucryd
Revision: 437169

upgpkg: snes9x 1.59.2-1

Modified:
  snes9x/trunk/PKGBUILD

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++------------------------
 1 file changed, 30 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-01 09:26:11 UTC (rev 437168)
+++ PKGBUILD	2019-03-01 09:28:25 UTC (rev 437169)
@@ -2,12 +2,15 @@
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 
 pkgbase=snes9x
-pkgname=(snes9x snes9x-gtk)
-pkgver=1.58
+pkgname=(
+  snes9x
+  snes9x-gtk
+)
+pkgver=1.59.2
 pkgrel=1
 pkgdesc='Portable Super Nintendo Entertainment System (TM) emulator'
 arch=(x86_64)
-url='http://www.snes9x.com/'
+url=http://www.snes9x.com/
 license=(custom)
 makedepends=(
   alsa-lib
@@ -15,6 +18,7 @@
   gdk-pixbuf2
   git
   glib2
+  glslang
   gtk3
   intltool
   libepoxy
@@ -25,25 +29,32 @@
   libxml2
   libxrandr
   libxv
+  meson
   minizip
   nasm
+  portaudio
   sdl2
   zlib
 )
-source=(git+https://github.com/snes9xgit/snes9x.git#tag=${pkgver})
-sha256sums=(SKIP)
+source=(
+  git+https://github.com/snes9xgit/snes9x.git#tag=${pkgver}
+  git+https://github.com/KhronosGroup/SPIRV-Cross.git
+)
+sha256sums=('SKIP'
+            'SKIP')
 
 prepare() {
-  pushd snes9x/unix
+  cd snes9x
 
-  autoreconf -fiv
+  for submodule in shaders/SPIRV-Cross; do
+    git submodule init ${submodule}
+    git config submodule.${submodule}.url ../${submodule#*/}
+    git submodule update ${submodule}
+  done
 
-  popd
-  pushd snes9x/gtk
+  cd unix
 
-  ./autogen.sh
-
-  popd
+  autoreconf -fiv
 }
 
 build() {
@@ -55,15 +66,9 @@
   make
 
   popd
-  pushd snes9x/gtk
 
-  ./configure \
-    --prefix='/usr' \
-    --with-netplay \
-    --with-opengl
-  make
-
-  popd
+  arch-meson snes9x/gtk build
+  ninja -C build
 }
 
 package_snes9x() {
@@ -91,6 +96,7 @@
     cairo
     gdk-pixbuf2
     glib2
+    glslang
     gtk3
     hicolor-icon-theme
     libepoxy
@@ -102,15 +108,15 @@
     libxrandr
     libxv
     minizip
+    portaudio
     sdl2
     zlib
   )
 
-  cd snes9x/gtk
+  DESTDIR="${pkgdir}" ninja -C build install
 
-  make DESTDIR="${pkgdir}" install
-  install -Dm 644 ../docs/{control-inputs.txt,controls.txt,snapshots.txt} -t "${pkgdir}"/usr/share/doc/snes9x-gtk
-  install -Dm 644 ../LICENSE "${pkgdir}"/usr/share/licenses/snes9x-gtk/LICENSE
+  install -Dm 644 snes9x/docs/{control-inputs.txt,controls.txt,snapshots.txt} -t "${pkgdir}"/usr/share/doc/snes9x-gtk
+  install -Dm 644 snes9x/LICENSE "${pkgdir}"/usr/share/licenses/snes9x-gtk/LICENSE
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list