From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/yabause-gtk/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++ community/yabause-gtk/rwx.patch | 20 ++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100755 community/yabause-gtk/PKGBUILD create mode 100755 community/yabause-gtk/rwx.patch (limited to 'community/yabause-gtk') diff --git a/community/yabause-gtk/PKGBUILD b/community/yabause-gtk/PKGBUILD new file mode 100755 index 000000000..64e3e1852 --- /dev/null +++ b/community/yabause-gtk/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 86073 2013-03-11 21:44:40Z alucryd $ +# Maintainer: Maxime Gauduin +# Contributor: Harley Laue +# Contributor: Hyacinthe Cartiaux +# Contributor: Anton Shestakov +# Contributor: Tiago Camargo +# Contributor: robb_force + +pkgname=yabause-gtk +pkgver=0.9.12 +pkgrel=2 +pkgdesc='A Sega Saturn emulator' +arch=('i686' 'x86_64') +url="http://yabause.org/" +license=('GPL') +depends=('freeglut' 'gtkglext' 'openal' 'sdl') +makedepends=('cmake' 'mesa') +conflicts=('yabause-qt') +source=("http://downloads.sourceforge.net/${pkgname%-*}/${pkgname%-*}-${pkgver}.tar.gz" 'rwx.patch') +sha256sums=('f45c9649c379e1e790856f8dfa37d93be5638e8f697319b241951316f817bfb1' + 'd29997d3249683081a2687f31e777f917093101d56815d22103aaaf22ac786b1') + +build() { + cd "${srcdir}"/${pkgname%-*}-${pkgver} + +# Patch + patch -Np1 -i "${srcdir}"/rwx.patch + +# Build + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DYAB_PORTS=gtk -DYAB_NETWORK=ON -DYAB_OPTIMIZED_DMA=on -DYAB_PERKEYNAME=ON + make +} + +package() { + cd "${srcdir}"/${pkgname%-*}-${pkgver}/build + +# Install + make DESTDIR="${pkgdir}" install +} + +# vim: ts=2 sw=2 et: diff --git a/community/yabause-gtk/rwx.patch b/community/yabause-gtk/rwx.patch new file mode 100755 index 000000000..bb0491b37 --- /dev/null +++ b/community/yabause-gtk/rwx.patch @@ -0,0 +1,20 @@ +--- a/src/sh2_dynarec/linkage_x64.s 2013-03-11 20:29:53.112870900 +0100 ++++ b/src/sh2_dynarec/linkage_x64.s 2013-03-11 20:31:48.856778600 +0100 +@@ -747,3 +747,7 @@ breakpoint: + ret + /* Set breakpoint here for debugging */ + .size breakpoint, .-breakpoint ++ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- a/src/sh2_dynarec/linkage_x86.s 2013-03-11 20:30:08.157693100 +0100 ++++ b/src/sh2_dynarec/linkage_x86.s 2013-03-11 20:32:30.993310600 +0100 +@@ -743,3 +743,7 @@ breakpoint: + ret + /* Set breakpoint here for debugging */ + .size breakpoint, .-breakpoint ++ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif -- cgit v1.2.3-54-g00ecf