[arch-commits] Commit in libretro-bsnes-hd/repos (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Sun Mar 6 15:43:22 UTC 2022
Date: Sunday, March 6, 2022 @ 15:43:22
Author: felixonmars
Revision: 1142498
archrelease: copy trunk to community-staging-x86_64
Added:
libretro-bsnes-hd/repos/community-staging-x86_64/
libretro-bsnes-hd/repos/community-staging-x86_64/PKGBUILD
(from rev 1142494, libretro-bsnes-hd/trunk/PKGBUILD)
libretro-bsnes-hd/repos/community-staging-x86_64/libretro-bsnes-hd-flags.patch
(from rev 1142495, libretro-bsnes-hd/trunk/libretro-bsnes-hd-flags.patch)
-------------------------------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++
libretro-bsnes-hd-flags.patch | 14 ++++++++++++
2 files changed, 60 insertions(+)
Copied: libretro-bsnes-hd/repos/community-staging-x86_64/PKGBUILD (from rev 1142494, libretro-bsnes-hd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-03-06 15:43:22 UTC (rev 1142498)
@@ -0,0 +1,46 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=libretro-bsnes-hd
+pkgver=50
+pkgrel=2
+pkgdesc='Super Nintendo Entertainment System core'
+arch=(x86_64)
+url=https://github.com/DerKoun/bsnes-hd
+license=(GPL3)
+groups=(libretro)
+depends=(
+ gcc-libs
+ libretro-core-info
+)
+makedepends=(git)
+_commit=65f24e56c37f46bb752190024bd4058e64ad77d1
+source=(
+ libretro-bsnes-hd::git+https://github.com/DerKoun/bsnes-hd.git#commit=${_commit}
+ libretro-bsnes-hd-flags.patch
+)
+sha256sums=(
+ SKIP
+ 8108ce3da95d9a7fd9fae00d2db042f1053e60d19fe87813b7ddf0aa5313cdd8
+)
+
+prepare() {
+ cd libretro-bsnes-hd
+
+ patch -Np1 -i ../libretro-bsnes-hd-flags.patch
+}
+
+pkgver() {
+ cd libretro-bsnes-hd
+
+ git rev-list --count HEAD
+}
+
+build() {
+ make -C libretro-bsnes-hd/bsnes -f GNUmakefile target=libretro binary=library local=false platform=linux
+}
+
+package() {
+ install -Dm 644 libretro-bsnes-hd/bsnes/out/bsnes_hd_beta_libretro.so -t "${pkgdir}"/usr/lib/libretro/
+}
+
+# vim: ts=2 sw=2 et:
Copied: libretro-bsnes-hd/repos/community-staging-x86_64/libretro-bsnes-hd-flags.patch (from rev 1142495, libretro-bsnes-hd/trunk/libretro-bsnes-hd-flags.patch)
===================================================================
--- community-staging-x86_64/libretro-bsnes-hd-flags.patch (rev 0)
+++ community-staging-x86_64/libretro-bsnes-hd-flags.patch 2022-03-06 15:43:22 UTC (rev 1142498)
@@ -0,0 +1,14 @@
+diff -rupN libretro-bsnes-hd.orig/bsnes/GNUmakefile libretro-bsnes-hd/bsnes/GNUmakefile
+--- libretro-bsnes-hd.orig/bsnes/GNUmakefile 2020-01-29 12:32:57.736128837 +0100
++++ libretro-bsnes-hd/bsnes/GNUmakefile 2020-01-29 12:40:58.993295237 +0100
+@@ -39,8 +39,8 @@ else ifneq ($(filter $(platform),linux b
+ options += -Wl,-export-dynamic
+ options += -lX11 -lXext
+ else ifeq ($(binary),library)
+- flags += -fPIC
+- options += -shared
++ flags += $(CXXFLAGS) -fPIC
++ options += $(LDFLAGS) -shared
+ endif
+ endif
+
More information about the arch-commits
mailing list