[arch-commits] Commit in snes9x/repos/community-x86_64 (3 files)
Maxime Gauduin
alucryd at archlinux.org
Sat Jun 9 09:22:01 UTC 2018
Date: Saturday, June 9, 2018 @ 09:22:01
Author: alucryd
Revision: 342154
archrelease: copy trunk to community-x86_64
Added:
snes9x/repos/community-x86_64/PKGBUILD
(from rev 342153, snes9x/trunk/PKGBUILD)
Deleted:
snes9x/repos/community-x86_64/PKGBUILD
snes9x/repos/community-x86_64/snes9x-buildflags.patch
-------------------------+
PKGBUILD | 131 ++++++++++++++++++++++++----------------------
snes9x-buildflags.patch | 54 ------------------
2 files changed, 70 insertions(+), 115 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-09 09:21:49 UTC (rev 342153)
+++ PKGBUILD 2018-06-09 09:22:01 UTC (rev 342154)
@@ -1,61 +0,0 @@
-# $Id$
-# Maintainer: Eric Bélanger <eric at archlinux.org>
-
-pkgbase=snes9x
-pkgname=('snes9x' 'snes9x-gtk')
-pkgver=1.55
-pkgrel=2
-arch=('x86_64')
-url="http://www.snes9x.com/"
-license=('custom')
-makedepends=('intltool' 'nasm' 'mesa' 'libpulse' 'libpng' 'sdl' 'gtk2' 'libxv'
- 'adwaita-icon-theme' 'minizip')
-source=(https://github.com/snes9xgit/snes9x/archive/$pkgver.tar.gz snes9x-buildflags.patch)
-sha1sums=('366d14f77f70e6eb7b4fac24cde6d79fcfc0add3'
- 'a1b68aaa710ee261a3e9ee1a80e9a82864f14374')
-
-prepare() {
- cd $pkgbase-$pkgver
- # Respect build flags (rmpfusion)
- patch -p1 -i ../snes9x-buildflags.patch
- cd unix
- autoreconf -vi
-}
-
-build() {
- cd ${pkgbase}-${pkgver}/unix
- ./configure --prefix=/usr --enable-netplay
- make
-
- cd ../gtk
- ./autogen.sh
- ./configure --prefix=/usr --with-netplay --with-opengl
- make
-}
-
-package_snes9x() {
- pkgdesc="A portable Emulator for the Super Nintendo Entertainment System"
- depends=('libpng' 'libxext' 'libsm' 'libxv' 'minizip')
-
- cd ${pkgbase}-${pkgver}/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} \
- "${pkgdir}/usr/share/doc/${pkgname}/"
- install -D -m644 "${srcdir}/${pkgbase}-${pkgver}/docs/snes9x-license.txt" \
- "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_snes9x-gtk() {
- pkgdesc="A portable Emulator for the Super Nintendo Entertainment System - GTK version"
- license=('custom' 'LGPL')
- depends=('sdl' 'libpulse' 'gtk2' 'libxv' 'adwaita-icon-theme' 'minizip')
-
- cd ${pkgbase}-${pkgver}/gtk
- make DESTDIR="${pkgdir}" install
- install -d "${pkgdir}/usr/share/doc/${pkgname}"
- install -D -m644 ../docs/{snes9x.conf.default,{control-inputs,controls,snapshots}.txt} \
- "${pkgdir}/usr/share/doc/${pkgname}/"
- install -D -m644 "${srcdir}/${pkgbase}-${pkgver}/docs/snes9x-license.txt" \
- "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
Copied: snes9x/repos/community-x86_64/PKGBUILD (from rev 342153, snes9x/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-06-09 09:22:01 UTC (rev 342154)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgbase=snes9x
+pkgname=('snes9x' 'snes9x-gtk')
+pkgver=1.56.1
+pkgrel=1
+pkgdesc='Portable Super Nintendo Entertainment System (TM) emulator'
+arch=('x86_64')
+url='http://www.snes9x.com/'
+license=('custom')
+makedepends=(
+ 'alsa-lib' 'cairo' 'gdk-pixbuf2' '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=('af118ba7f5ebc152a1a43bb372bdfcd60e2ca87f')
+
+prepare() {
+ cd snes9x-${pkgver}/gtk
+
+ autoreconf -vif
+}
+
+
+build() {
+ cd snes9x-${pkgver}/unix
+
+ ./configure \
+ --prefix='/usr' \
+ --enable-netplay
+ make
+
+ cd ../gtk
+ ./autogen.sh
+ ./configure \
+ --prefix='/usr' \
+ --with-netplay \
+ --with-opengl
+ make
+}
+
+package_snes9x() {
+ depends=('libpng' 'libx11' 'libxext' 'libxinerama' 'libxv' 'minizip' 'zlib')
+
+ cd snes9x-${pkgver}/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
+ install -Dm 644 ../LICENSE "${pkgdir}"/usr/share/licenses/snes9x/LICENSE
+
+}
+
+package_snes9x-gtk() {
+ depends=(
+ 'alsa-lib' 'cairo' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme'
+ 'libepoxy' 'libpng' 'libpulse' 'libx11' 'libxext' 'libxml2' 'libxrandr'
+ 'libxv' 'minizip' 'sdl2' 'zlib'
+ )
+
+ cd snes9x-${pkgver}/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
+ install -Dm 644 ../LICENSE "${pkgdir}"/usr/share/licenses/snes9x-gtk/LICENSE
+}
+
+# vim: ts=2 sw=2 et:
Deleted: snes9x-buildflags.patch
===================================================================
--- snes9x-buildflags.patch 2018-06-09 09:21:49 UTC (rev 342153)
+++ snes9x-buildflags.patch 2018-06-09 09:22:01 UTC (rev 342154)
@@ -1,54 +0,0 @@
-diff -durN snes9x-1.54.1.orig/unix/configure.ac snes9x-1.54.1/unix/configure.ac
---- snes9x-1.54.1.orig/unix/configure.ac 2016-10-15 02:20:34.000000000 +0200
-+++ snes9x-1.54.1/unix/configure.ac 2017-02-04 18:52:33.297396407 +0100
-@@ -55,50 +55,6 @@
- # *****************************
- # *** Execution begins here ***
- # *****************************
--
--# Remove -g and -O2 flags manually.
--
--if test "x$CFLAGS" != "x"; then
-- CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-g//'`"
-- CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-O2//'`"
--fi
--
--if test "x$CXXFLAGS" != "x"; then
-- CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-g//'`"
-- CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-O2//'`"
--fi
--
--# Test what compiler flags we should use.
--
--AC_ARG_ENABLE([debug],
-- [AS_HELP_STRING([--enable-debug],
-- [leave debug information in the final binary (default: no)])],
-- [], [enable_debug="no"])
--
--if test "x$enable_debug" = "xyes"; then
-- AC_S9X_COMPILER_FLAG([-g], [g])
-- AC_S9X_COMPILER_FLAG([-O0], [o0])
--else
-- AC_S9X_COMPILER_FLAG([-O3], [o3], [
-- AC_S9X_COMPILER_FLAG([-O2], [o2], [
-- AC_S9X_COMPILER_FLAG([-O1], [o1])])])
-- AC_S9X_COMPILER_FLAG([-fomit-frame-pointer], [omit_frame_pointer])
--fi
--
--AC_ARG_ENABLE([mtune],
-- [AS_HELP_STRING([--enable-mtune],
-- [use the specified value for the -mtune/-mcpu flag (default: no)])],
-- [], [enable_mtune="no"])
--
--if test "x$enable_mtune" != "xno"; then
-- AC_S9X_COMPILER_FLAG([-mtune="$enable_mtune"], [mtune],
-- [
-- AC_MSG_WARN([-mtune failed, trying -mcpu...])
-- AC_S9X_COMPILER_FLAG([-mcpu="$enable_mtune"], [mcpu],
-- [AC_MSG_ERROR([Please specify a working value for --enable-mtune.])])
-- ])
--fi
--
- AC_S9X_COMPILER_FLAG([-fno-exceptions], [no_exceptions])
- AC_S9X_COMPILER_FLAG([-fno-rtti], [no_rtti])
- AC_S9X_COMPILER_FLAG([-pedantic], [pedantic])
More information about the arch-commits
mailing list