summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD35
2 files changed, 16 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9d88383bc7c..f188ab06339 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = snes9x-git
pkgdesc = Port of the Snes9x emulator (git version)
- pkgver = 1.60.r280.gfc78065
+ pkgver = 1.60.r291.g8a5d29c
pkgrel = 1
url = http://www.snes9x.com/
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 48448dcd350..7edc624661a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,14 +4,14 @@
pkgbase=snes9x-git
_pkgbase=snes9x
-pkgname=( snes9x-git snes9x-gtk-git )
-pkgver=1.60.r280.gfc78065
+pkgname=(snes9x-git snes9x-gtk-git)
+pkgver=1.60.r291.g8a5d29c
pkgrel=1
pkgdesc="Port of the Snes9x emulator (git version)"
arch=('x86_64')
url="http://www.snes9x.com/"
license=('custom')
-makedepends=( alsa-lib cairo gdk-pixbuf2 git glib2
+makedepends=(alsa-lib cairo gdk-pixbuf2 git glib2
gtk3 intltool libepoxy libpng libpulse libx11 libxext libxml2
libxrandr libxv meson minizip nasm portaudio sdl2 zlib gtkmm3
)
@@ -25,22 +25,17 @@ sha256sums=('SKIP'
'SKIP')
pkgver() {
- cd ${_pkgbase}
+ cd "${_pkgbase}"
git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd ${_pkgbase}
- for submodule in shaders/SPIRV-Cross; do
- git submodule init ${submodule}
- git config submodule.${submodule}.url ../${submodule#*/}
- git submodule update ${submodule}
- done
-
- for submodule in shaders/glslang; do
- git submodule init ${submodule}
- git config submodule.${submodule}.url ../${submodule#*/}
- git submodule update ${submodule}
+ declare -a submodules=("shaders/SPIRV-Cross" "shaders/glslang")
+ for submodule in "${submodules[@]}"; do
+ git submodule init "${submodule}"
+ git config "submodule.${submodule}.url" "../${submodule#*/}"
+ git submodule update "${submodule}"
done
cd unix
@@ -48,14 +43,14 @@ prepare() {
}
build() {
- cd ${_pkgbase}/unix
+ cd "${_pkgbase}/unix"
./configure \
--prefix='/usr' \
--enable-netplay
make
- cd ${srcdir}
+ cd "${srcdir}"
arch-meson snes9x/gtk build
ninja -C build
}
@@ -68,7 +63,7 @@ package_snes9x-git() {
conflicts=('snes9x')
provides=('snesx')
- cd ${_pkgbase}
+ cd "${_pkgbase}"
install -D -m755 unix/snes9x -t "${pkgdir}"/usr/bin/
install -d "${pkgdir}/usr/share/doc/${pkgname}"
install -D -m644 {unix/snes9x.conf.default,docs/{control-inputs,controls,snapshots}.txt} \
@@ -81,17 +76,17 @@ package_snes9x-git() {
package_snes9x-gtk-git() {
pkgdesc="Portable Emulator for the Super Nintendo Entertainment System - GTK version"
- depends=(alsa-lib cairo gdk-pixbuf2 glib2 gtk3 hicolor-icon-theme libepoxy libpng libpulse libxext libxml2 libxrandr libxv minizip portaudio sdl2 gtkmm3)
+ depends=(alsa-lib cairo gdk-pixbuf2 glib2 gtk3 hicolor-icon-theme libepoxy libpng libpulse libxext libxml2 libxrandr libxv minizip portaudio sdl2 gtkmm3)
conflicts=('snes9x-gtk')
provides=('snes9x-gtk')
DESTDIR="${pkgdir}" ninja -C build install
- cd ${_pkgbase}
+ cd "${_pkgbase}"
install -d "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm644 {unix/snes9x.conf.default,docs/{control-inputs,controls,snapshots}.txt} \
+ install -Dm644 {unix/snes9x.conf.default,docs/{control-inputs,controls,snapshots}.txt} \
"${pkgdir}/usr/share/doc/${pkgname}/"
install -vDm644 LICENSE -t \
"${pkgdir}/usr/share/licenses/${pkgname}"