[arch-commits] Commit in snes9x/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Wed Nov 14 08:51:45 UTC 2018
Date: Wednesday, November 14, 2018 @ 08:51:44
Author: alucryd
Revision: 407321
upgpkg: snes9x 1.57-1
Modified:
snes9x/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++------------
1 file changed, 21 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-14 07:47:42 UTC (rev 407320)
+++ PKGBUILD 2018-11-14 08:51:44 UTC (rev 407321)
@@ -3,7 +3,7 @@
pkgbase=snes9x
pkgname=('snes9x' 'snes9x-gtk')
-pkgver=1.56.2
+pkgver=1.57
pkgrel=1
pkgdesc='Portable Super Nintendo Entertainment System (TM) emulator'
arch=('x86_64')
@@ -10,22 +10,28 @@
url='http://www.snes9x.com/'
license=('custom')
makedepends=(
- 'alsa-lib' 'cairo' 'gdk-pixbuf2' 'glib2' 'gtk3' 'intltool' 'libepoxy'
+ 'alsa-lib' 'cairo' 'gdk-pixbuf2' 'git' 'glib2' 'gtk3' 'intltool' 'libepoxy'
'libpng' 'libpulse' 'libx11' 'libxext' 'libxml2' 'libxrandr' 'libxv'
'minizip' 'nasm' 'sdl2' 'zlib'
)
-source=("https://github.com/snes9xgit/snes9x/archive/${pkgver}.tar.gz")
-sha1sums=('761af9b038d8856af67aa6683f9f25865ab57283')
+source=("git+https://github.com/snes9xgit/snes9x.git#tag=${pkgver}")
+sha256sums=('SKIP')
prepare() {
- cd snes9x-${pkgver}/gtk
+ pushd snes9x/unix
- autoreconf -vif
+ autoreconf -fiv
+
+ popd
+ pushd snes9x/gtk
+
+ ./autogen.sh
+
+ popd
}
-
build() {
- cd snes9x-${pkgver}/unix
+ pushd snes9x/unix
./configure \
--prefix='/usr' \
@@ -32,19 +38,22 @@
--enable-netplay
make
- cd ../gtk
- ./autogen.sh
+ popd
+ pushd snes9x/gtk
+
./configure \
--prefix='/usr' \
--with-netplay \
--with-opengl
make
+
+ popd
}
package_snes9x() {
depends=('libpng' 'libx11' 'libxext' 'libxinerama' 'libxv' 'minizip' 'zlib')
- cd snes9x-${pkgver}/unix
+ cd snes9x/unix
install -Dm 755 snes9x -t "${pkgdir}"/usr/bin/
install -Dm 644 ../docs/{snes9x.conf.default,control-inputs.txt,controls.txt,snapshots.txt} -t "${pkgdir}"/usr/share/doc/snes9x
@@ -59,7 +68,7 @@
'libxv' 'minizip' 'sdl2' 'zlib'
)
- cd snes9x-${pkgver}/gtk
+ cd snes9x/gtk
make DESTDIR="${pkgdir}" install
install -Dm 644 ../docs/{snes9x.conf.default,control-inputs.txt,controls.txt,snapshots.txt} -t "${pkgdir}"/usr/share/doc/snes9x-gtk
More information about the arch-commits
mailing list