[arch-commits] Commit in snes9x/repos (2 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Nov 4 00:46:14 UTC 2020


    Date: Wednesday, November 4, 2020 @ 00:46:14
  Author: svenstaro
Revision: 741501

archrelease: copy trunk to community-staging-x86_64

Added:
  snes9x/repos/community-staging-x86_64/
  snes9x/repos/community-staging-x86_64/PKGBUILD
    (from rev 741500, snes9x/trunk/PKGBUILD)

----------+
 PKGBUILD |  123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 123 insertions(+)

Copied: snes9x/repos/community-staging-x86_64/PKGBUILD (from rev 741500, snes9x/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-04 00:46:14 UTC (rev 741501)
@@ -0,0 +1,123 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgbase=snes9x
+pkgname=(
+  snes9x
+  snes9x-gtk
+)
+pkgver=1.60
+pkgrel=7
+pkgdesc='Portable Super Nintendo Entertainment System (TM) emulator'
+arch=(x86_64)
+url=http://www.snes9x.com/
+license=(custom)
+makedepends=(
+  alsa-lib
+  cairo
+  gdk-pixbuf2
+  git
+  glib2
+  glslang
+  gtk3
+  intltool
+  libepoxy
+  libpng
+  libpulse
+  libx11
+  libxext
+  libxml2
+  libxrandr
+  libxv
+  meson
+  minizip
+  nasm
+  portaudio
+  sdl2
+  zlib
+)
+source=(
+  git+https://github.com/snes9xgit/snes9x.git#tag=${pkgver}
+  git+https://github.com/KhronosGroup/SPIRV-Cross.git
+)
+sha256sums=('SKIP'
+            'SKIP')
+
+prepare() {
+  cd snes9x
+
+  for submodule in shaders/SPIRV-Cross; do
+    git submodule init ${submodule}
+    git config submodule.${submodule}.url ../${submodule#*/}
+    git submodule update ${submodule}
+  done
+
+  cd unix
+
+  autoreconf -fiv
+}
+
+build() {
+  pushd snes9x/unix
+
+  CXXFLAGS+=" -I/usr/include/glslang"
+  ./configure \
+    --prefix='/usr' \
+    --enable-netplay
+  make
+
+  popd
+
+  arch-meson snes9x/gtk build
+  ninja -C build
+}
+
+package_snes9x() {
+  depends=(
+    libpng
+    libx11
+    libxext
+    libxinerama
+    libxv
+    minizip
+    zlib
+  )
+
+  cd snes9x/unix
+
+  install -Dm 755 snes9x -t "${pkgdir}"/usr/bin/
+  install -Dm 644 ../docs/{control-inputs.txt,controls.txt,snapshots.txt} -t "${pkgdir}"/usr/share/doc/snes9x
+  install -Dm 644 ../LICENSE "${pkgdir}"/usr/share/licenses/snes9x/LICENSE
+
+}
+
+package_snes9x-gtk() {
+  depends=(
+    alsa-lib
+    cairo
+    gdk-pixbuf2
+    glib2
+    glslang
+    gtk3
+    hicolor-icon-theme
+    libepoxy
+    libpng
+    libpulse
+    libx11
+    libxext
+    libxml2
+    libxrandr
+    libxv
+    minizip
+    portaudio
+    sdl2
+    zlib
+  )
+
+  DESTDIR="${pkgdir}" ninja -C build install
+
+  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