[arch-commits] Commit in byuu (5 files)

Maxime Gauduin alucryd at archlinux.org
Wed Mar 18 19:32:54 UTC 2020


    Date: Wednesday, March 18, 2020 @ 19:32:54
  Author: alucryd
Revision: 600667

archrelease: copy trunk to community-x86_64

Added:
  byuu/repos/
  byuu/repos/community-x86_64/
  byuu/repos/community-x86_64/PKGBUILD
    (from rev 600666, byuu/trunk/PKGBUILD)
  byuu/repos/community-x86_64/byuu-flags.patch
    (from rev 600666, byuu/trunk/byuu-flags.patch)
  byuu/repos/community-x86_64/byuu-paths.patch
    (from rev 600666, byuu/trunk/byuu-paths.patch)

------------------+
 PKGBUILD         |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 byuu-flags.patch |   23 +++++++++++++++++
 byuu-paths.patch |   22 ++++++++++++++++
 3 files changed, 116 insertions(+)

Copied: byuu/repos/community-x86_64/PKGBUILD (from rev 600666, byuu/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2020-03-18 19:32:54 UTC (rev 600667)
@@ -0,0 +1,71 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=byuu
+pkgver=3
+pkgrel=1
+pkgdesc='A multi-system emulator focused on performance, features, and ease of use'
+arch=(x86_64)
+url=https://byuu.org/
+license=(GPL3)
+depends=(
+  gcc-libs
+  glibc
+  libao
+  libasound.so
+  libgl
+  libpulse-simple.so
+  libpulse.so
+  libudev.so
+  libx11
+  libxext
+  libxrandr
+  libxv
+  openal
+  qt5-base
+  sdl2
+)
+makedepends=(
+  git
+)
+source=(
+  git+https://github.com/byuu/byuu.git#tag=2533493fccdd03b51f574841de6ac67e02134c06
+  git+https://github.com/byuu/bsnes.git#tag=8e80d2f8a43e34a82931e25143b279e5fbcfaedc
+  byuu-flags.patch
+  byuu-paths.patch
+)
+sha256sums=('SKIP'
+            'SKIP'
+            '514bce6f87f8ffc2476d0a5e5948fc79ab4470d0514d089cd8ac2386f8532730'
+            '5596804071813a5745d38eda21a9b2df6470f24db27c1d99c7284cbc97f27fda')
+
+pkgver() {
+  cd byuu
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd byuu
+
+  patch -Np1 -i ../byuu-flags.patch
+  patch -Np1 -i ../byuu-paths.patch
+  sed 's|/usr/local/lib/qt5/bin/moc|moc|' -i hiro/GNUmakefile
+}
+
+build() {
+  cd byuu
+
+  make -C higan hiro=qt5
+}
+
+package() {
+  install -dm 755 "${pkgdir}"/usr/share/byuu
+
+  install -Dm 755 byuu/higan/out/byuu -t "${pkgdir}"/usr/bin/
+  install -Dm 644 byuu/higan/target-byuu/resource/byuu.desktop -t "${pkgdir}"/usr/share/applications/
+  install -Dm 644 byuu/higan/target-byuu/resource/byuu.png -t "${pkgdir}"/usr/share/pixmaps/
+  cp -dr --no-preserve='ownership' bsnes/bsnes/Database "${pkgdir}"/usr/share/byuu/
+  cp -dr --no-preserve='ownership' bsnes/shaders "${pkgdir}"/usr/share/byuu/Shaders
+}
+
+# vim: ts=2 sw=2 et:

Copied: byuu/repos/community-x86_64/byuu-flags.patch (from rev 600666, byuu/trunk/byuu-flags.patch)
===================================================================
--- repos/community-x86_64/byuu-flags.patch	                        (rev 0)
+++ repos/community-x86_64/byuu-flags.patch	2020-03-18 19:32:54 UTC (rev 600667)
@@ -0,0 +1,23 @@
+From a185a9bd8de1e5b860dcce7bccc5c71b1caec53a Mon Sep 17 00:00:00 2001
+From: Maxime Gauduin <alucryd at archlinux.org>
+Date: Wed, 18 Mar 2020 20:07:03 +0100
+Subject: [PATCH] use system flags
+
+---
+ nall/GNUmakefile | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/nall/GNUmakefile b/nall/GNUmakefile
+index 67fb3a1..fddec93 100755
+--- a/nall/GNUmakefile
++++ b/nall/GNUmakefile
+@@ -127,7 +127,8 @@ endif
+ 
+ # linux settings
+ ifeq ($(platform),linux)
+-  options += -ldl
++  flags += ${CXXFLAGS}
++  options += ${LDFLAGS} -ldl
+ endif
+ 
+ # bsd settings

Copied: byuu/repos/community-x86_64/byuu-paths.patch (from rev 600666, byuu/trunk/byuu-paths.patch)
===================================================================
--- repos/community-x86_64/byuu-paths.patch	                        (rev 0)
+++ repos/community-x86_64/byuu-paths.patch	2020-03-18 19:32:54 UTC (rev 600667)
@@ -0,0 +1,22 @@
+From a1cd313f48c9dce60016a1cb48de8ed7ec2179f0 Mon Sep 17 00:00:00 2001
+From: Maxime Gauduin <alucryd at archlinux.org>
+Date: Wed, 18 Mar 2020 20:05:50 +0100
+Subject: [PATCH] use more sensible paths
+
+---
+ higan/target-byuu/byuu.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/higan/target-byuu/byuu.cpp b/higan/target-byuu/byuu.cpp
+index 026df2f..e73f00d 100644
+--- a/higan/target-byuu/byuu.cpp
++++ b/higan/target-byuu/byuu.cpp
+@@ -10,7 +10,7 @@ auto locate(const string& name) -> string {
+   string location = {Path::program(), name};
+   if(inode::exists(location)) return location;
+ 
+-  location = {Path::userData(), "byuu/", name};
++  location = {Path::sharedData(), "byuu/", name};
+   if(inode::exists(location)) return location;
+ 
+   directory::create({Path::userSettings(), "byuu/"});



More information about the arch-commits mailing list