[arch-commits] Commit in (4 files)

Maxime Gauduin alucryd at archlinux.org
Mon Mar 30 09:26:51 UTC 2020


    Date: Monday, March 30, 2020 @ 09:26:51
  Author: alucryd
Revision: 606714

add libretro-bsnes2014

Added:
  libretro-bsnes2014/
  libretro-bsnes2014/trunk/
  libretro-bsnes2014/trunk/PKGBUILD
  libretro-bsnes2014/trunk/libretro-bsnes2014-flags.patch

--------------------------------+
 PKGBUILD                       |   47 +++++++++++++++++++++++++++++++++++++++
 libretro-bsnes2014-flags.patch |   33 +++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

Added: libretro-bsnes2014/trunk/PKGBUILD
===================================================================
--- libretro-bsnes2014/trunk/PKGBUILD	                        (rev 0)
+++ libretro-bsnes2014/trunk/PKGBUILD	2020-03-30 09:26:51 UTC (rev 606714)
@@ -0,0 +1,47 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=libretro-bsnes2014
+pkgver=566
+pkgrel=1
+epoch=1
+pkgdesc='Super Nintendo Entertainment System cores'
+arch=(x86_64)
+url=https://github.com/libretro/bsnes-libretro
+license=(GPL3)
+groups=(libretro)
+depends=(libretro-core-info)
+makedepends=(git)
+source=(
+  libretro-bsnes2014::git+https://github.com/libretro/bsnes-libretro#commit=feb8c10c672094e689ed057a278c2b354e113f32
+  libretro-bsnes2014-flags.patch
+)
+sha256sums=(
+  SKIP
+  952646fac97a7899802e12415045650bff21aae508c1f66e220cfa2881f3ae02
+)
+
+pkgver() {
+  cd libretro-bsnes2014
+
+  git rev-list --count HEAD
+}
+
+prepare() {
+  cd libretro-bsnes2014
+
+  patch -Np1 -i ../libretro-bsnes2014-flags.patch
+}
+
+build() {
+  for p in accuracy balanced performance; do
+    make -C libretro-bsnes2014 profile=${p}
+  done
+}
+
+package() {
+  for p in accuracy balanced performance; do
+    install -Dm 644 libretro-bsnes2014/out/bsnes2014_${p}_libretro.so -t "${pkgdir}"/usr/lib/libretro/
+  done
+}
+
+# vim: ts=2 sw=2 et:

Added: libretro-bsnes2014/trunk/libretro-bsnes2014-flags.patch
===================================================================
--- libretro-bsnes2014/trunk/libretro-bsnes2014-flags.patch	                        (rev 0)
+++ libretro-bsnes2014/trunk/libretro-bsnes2014-flags.patch	2020-03-30 09:26:51 UTC (rev 606714)
@@ -0,0 +1,33 @@
+diff -rupN libretro-bsnes.orig/.git/FETCH_HEAD libretro-bsnes/.git/FETCH_HEAD
+--- libretro-bsnes.orig/.git/FETCH_HEAD	1970-01-01 01:00:00.000000000 +0100
++++ libretro-bsnes/.git/FETCH_HEAD	2018-12-07 18:31:25.943337424 +0100
+@@ -0,0 +1,3 @@
++2a0b1a4f0b47100a781e025b085cb7ed88798527	not-for-merge	branch '096' of /home/alucryd/Packages/src/libretro-bsnes
++c6e90ddcdfdc5ca1b56319df662912b3c026d78f	not-for-merge	branch 'libretro' of /home/alucryd/Packages/src/libretro-bsnes
++95350550af6c76b57593dea980b5c3a27e5bf09e	not-for-merge	branch 'master' of /home/alucryd/Packages/src/libretro-bsnes
+Binary files libretro-bsnes.orig/.git/index and libretro-bsnes/.git/index differ
+diff -rupN libretro-bsnes.orig/Makefile libretro-bsnes/Makefile
+--- libretro-bsnes.orig/Makefile	2018-12-07 18:09:48.766873570 +0100
++++ libretro-bsnes/Makefile	2018-12-07 18:22:39.006021877 +0100
+@@ -32,7 +32,8 @@ sfc_lagfix := 1
+ ifeq ($(DEBUG), 1)
+   flags := -I. -Ilibco -O0 -g
+ else
+-  flags := -I. -Ilibco -O3 -fomit-frame-pointer
++  flags := $(CFLAGS) -I. -Ilibco -fomit-frame-pointer
++  link := $(LDFLAGS)
+ endif
+ 
+ cflags := -std=gnu99 -xc
+diff -rupN libretro-bsnes.orig/target-libretro/Makefile libretro-bsnes/target-libretro/Makefile
+--- libretro-bsnes.orig/target-libretro/Makefile	2018-12-07 18:09:48.813540589 +0100
++++ libretro-bsnes/target-libretro/Makefile	2018-12-07 18:31:23.149982988 +0100
+@@ -46,7 +46,7 @@ obj/libretro-$(profile).o: $(ui)/libretr
+ #targets
+ build: $(objects)
+ ifeq ($(platform),linux)
+-	$(compiler) -o out/bsnes2014_$(profile)_libretro.so -shared $(objects) -ldl -Wl,--no-undefined -Wl,--version-script=$(ui)/link.T
++	$(compiler) -o out/bsnes2014_$(profile)_libretro.so $(link) -shared $(objects) -ldl -Wl,--no-undefined -Wl,--version-script=$(ui)/link.T
+ else ifneq (,$(findstring ios,$(platform)))
+   ifeq ($(platform),ios-arm64)
+ 		$(compiler) -o out/bsnes_$(profile)_libretro_ios.dylib -dynamiclib $(objects) -isysroot $(IOSSDK) -arch arm64



More information about the arch-commits mailing list