[arch-commits] Commit in mupen64plus/repos (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 12 16:10:26 UTC 2020
Date: Saturday, December 12, 2020 @ 16:10:26
Author: foutrelis
Revision: 773401
archrelease: copy trunk to community-staging-x86_64
Added:
mupen64plus/repos/community-staging-x86_64/
mupen64plus/repos/community-staging-x86_64/010-mupen64plus-ui-console-pie.patch
(from rev 773400, mupen64plus/trunk/010-mupen64plus-ui-console-pie.patch)
mupen64plus/repos/community-staging-x86_64/020-mupen64plus-core-gcc10-fix.patch
(from rev 773400, mupen64plus/trunk/020-mupen64plus-core-gcc10-fix.patch)
mupen64plus/repos/community-staging-x86_64/PKGBUILD
(from rev 773400, mupen64plus/trunk/PKGBUILD)
--------------------------------------+
010-mupen64plus-ui-console-pie.patch | 11 ++++++++
020-mupen64plus-core-gcc10-fix.patch | 10 +++++++
PKGBUILD | 44 +++++++++++++++++++++++++++++++++
3 files changed, 65 insertions(+)
Copied: mupen64plus/repos/community-staging-x86_64/010-mupen64plus-ui-console-pie.patch (from rev 773400, mupen64plus/trunk/010-mupen64plus-ui-console-pie.patch)
===================================================================
--- community-staging-x86_64/010-mupen64plus-ui-console-pie.patch (rev 0)
+++ community-staging-x86_64/010-mupen64plus-ui-console-pie.patch 2020-12-12 16:10:26 UTC (rev 773401)
@@ -0,0 +1,11 @@
+--- a/source/mupen64plus-ui-console/projects/unix/Makefile
++++ b/source/mupen64plus-ui-console/projects/unix/Makefile
+@@ -84,8 +84,6 @@ endif
+ ifeq ($(PIE), 1)
+ CFLAGS += -fPIE
+ LDFLAGS += -pie
+-else
+- CFLAGS += -fno-PIE
+ endif
+
+ # set special flags per-system
Copied: mupen64plus/repos/community-staging-x86_64/020-mupen64plus-core-gcc10-fix.patch (from rev 773400, mupen64plus/trunk/020-mupen64plus-core-gcc10-fix.patch)
===================================================================
--- community-staging-x86_64/020-mupen64plus-core-gcc10-fix.patch (rev 0)
+++ community-staging-x86_64/020-mupen64plus-core-gcc10-fix.patch 2020-12-12 16:10:26 UTC (rev 773401)
@@ -0,0 +1,10 @@
+--- a/source/mupen64plus-core/src/main/workqueue.h
++++ b/source/mupen64plus-core/src/main/workqueue.h
+@@ -27,7 +27,6 @@
+
+ struct work_struct;
+
+-struct work_struct *work;
+ typedef void (*work_func_t)(struct work_struct *work);
+ struct work_struct {
+ work_func_t func;
Copied: mupen64plus/repos/community-staging-x86_64/PKGBUILD (from rev 773400, mupen64plus/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-12 16:10:26 UTC (rev 773401)
@@ -0,0 +1,44 @@
+# Maintainer : Daniel Bermond <dbermond at archlinux.org>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Zephyr
+
+pkgname=mupen64plus
+pkgver=2.5
+pkgrel=18
+pkgdesc='Nintendo64 Emulator'
+arch=('x86_64')
+url='https://github.com/mupen64plus/mupen64plus-core'
+license=('GPL')
+depends=('boost-libs' 'freetype2' 'glu' 'libgl' 'libpng' 'libsamplerate' 'sdl'
+ 'zlib' 'hicolor-icon-theme')
+makedepends=('boost' 'mesa')
+source=("https://github.com/mupen64plus/mupen64plus-core/releases/download/${pkgver}/mupen64plus-bundle-src-${pkgver}.tar.gz"
+ '010-mupen64plus-ui-console-pie.patch'
+ '020-mupen64plus-core-gcc10-fix.patch')
+sha256sums=('9c75b9d826f2d24666175f723a97369b3a6ee159b307f7cc876bbb4facdbba66'
+ '0b674779949ca90db9f156b56dd9d7be9847354f5b07ec73aa3a89dde79d6b6d'
+ 'f84f262bcf2b748ccded4443735caba92926241f9238f545a621009f6ae64ef7')
+
+prepare() {
+ patch -d "mupen64plus-bundle-src-${pkgver}" -Np1 -i "${srcdir}/010-mupen64plus-ui-console-pie.patch"
+ patch -d "mupen64plus-bundle-src-${pkgver}" -Np1 -i "${srcdir}/020-mupen64plus-core-gcc10-fix.patch"
+}
+
+build() {
+ cd "mupen64plus-bundle-src-${pkgver}"
+ ./m64p_build.sh
+}
+
+package() {
+ cd "mupen64plus-bundle-src-${pkgver}"
+
+ # set LDCONFIG since we are using fakeroot and scripts run root commands by checking the uid
+ ./m64p_install.sh DESTDIR="$pkgdir" PREFIX='/usr' LDCONFIG='true'
+
+ local _sover
+ _sover="$(find "${pkgdir}/usr/lib" -type f -name 'libmupen64plus.so.*.*.*' | sed 's/^.*\.so\.//')"
+ ln -s "libmupen64plus.so.${_sover}" "${pkgdir}/usr/lib/libmupen64plus.so"
+}
More information about the arch-commits
mailing list