Date: Friday, December 7, 2018 @ 09:23:57 Author: alucryd Revision: 412043
upgpkg: libretro-blastem 944-1 Added: libretro-blastem/trunk/libretro-blastem-flags.patch Modified: libretro-blastem/trunk/PKGBUILD ------------------------------+ PKGBUILD | 34 ++++++++++++++++++++++------------ libretro-blastem-flags.patch | 24 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-12-07 08:30:46 UTC (rev 412042) +++ PKGBUILD 2018-12-07 09:23:57 UTC (rev 412043) @@ -1,18 +1,24 @@ # Maintainer: Maxime Gauduin <[email protected]> pkgname=libretro-blastem -pkgver=942 +pkgver=944 pkgrel=1 pkgdesc='Sega Mega Drive core' -arch=('x86_64') +arch=(x86_64) url='https://github.com/libretro/blastem-libretro' -license=('GPL3') -groups=('libretro') -depends=('glibc' 'libretro-core-info') -makedepends=('git') -_commit='13209ec505694c5f18c12f44cedb81a542f3cafa' -source=("libretro-blastem::git+https://github.com/libretro/blastem-libretro.git#commit=${_commit}") -sha256sums=('SKIP') +license=(GPL3) +groups=(libretro) +depends=(libretro-core-info) +makedepends=(git) +_commit='ccc11186b008fd674263812e37361df2b89166a9' +source=( + libretro-blastem::git+https://github.com/libretro/blastem-libretro.git#commit=${_commit} + libretro-blastem-flags.patch +) +sha256sums=( + SKIP + 2289a7f76626bed09f5e191643a1ffeaaa2191245573eaa336824c0e9a45c35e +) pkgver() { cd libretro-blastem @@ -20,12 +26,16 @@ git rev-list --count HEAD } +prepare() { + cd libretro-blastem + + patch -Np1 -i ../libretro-blastem-flags.patch +} + build() { cd libretro-blastem/libretro - sed 's/CFLAGS :=/CFLAGS +=/g' -i Makefile - - make WITH_DYNAREC='x86_64' + make } package() { Added: libretro-blastem-flags.patch =================================================================== --- libretro-blastem-flags.patch (rev 0) +++ libretro-blastem-flags.patch 2018-12-07 09:23:57 UTC (rev 412043) @@ -0,0 +1,24 @@ +Binary files libretro-blastem.orig/.git/index and libretro-blastem/.git/index differ +diff -rupN libretro-blastem.orig/libretro/Makefile libretro-blastem/libretro/Makefile +--- libretro-blastem.orig/libretro/Makefile 2018-12-07 10:09:11.171250785 +0100 ++++ libretro-blastem/libretro/Makefile 2018-12-07 10:19:39.402863430 +0100 +@@ -1,7 +1,7 @@ + DEBUG := 0 + NAME := blastem_libretro + SOEXT := .so +-FLTO := ++FLTO := -flto + WITH_Z80 := 1 + WITH_DYNAREC := + OPTIMIZE_FLAG := +@@ -29,8 +29,8 @@ ifneq ($(SANITIZER),) + LDFLAGS := -fsanitize=$(SANITIZER) $(LDLAGS) + endif + +-CFLAGS := $(OPTIMIZE_FLAG) -std=gnu99 -Wall -D__LIBRETRO__ -I. -I.. -Ilibco $(SANITIZER) +-LDFLAGS := $(SANITIZER) -shared -Wl,--no-undefined ++CFLAGS := $(CFLAGS) -std=gnu99 -Wall -D__LIBRETRO__ -I. -I.. -Ilibco ++LDFLAGS := $(LDFLAGS) -shared -Wl,--no-undefined + LIBS := -lm + + ifeq ($(platform),)
