From 6e2b009294c3ca8a641bf1760d7e157de896061a Mon Sep 17 00:00:00 2001 From: meator Date: Thu, 9 Sep 2021 10:33:36 +0200 Subject: [PATCH] higan: fix dead links & fix lint --- srcpkgs/higan/patches/makefile-root.patch | 22 ++++++++++++++++++++++ srcpkgs/higan/template | 15 +++++++++------ 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/higan/patches/makefile-root.patch diff --git a/srcpkgs/higan/patches/makefile-root.patch b/srcpkgs/higan/patches/makefile-root.patch new file mode 100644 index 000000000000..13fdcc8e7094 --- /dev/null +++ b/srcpkgs/higan/patches/makefile-root.patch @@ -0,0 +1,22 @@ +--- a/higan/target-higan/GNUmakefile 2020-03-20 08:59:06.000000000 +0100 ++++ b/higan/target-higan/GNUmakefile 2021-09-09 10:58:54.370975389 +0200 +@@ -37,8 +37,6 @@ + ifeq ($(platform),windows) + mkdir -p $(prefix)/$(name)/ + cp -R System/* $(prefix)/$(name)/ +-else ifeq ($(shell id -un),root) +- $(error "make install should not be run as root") + else ifeq ($(platform),macos) + mkdir -p ~/Library/Application\ Support\$(name)/ + mkdir -p ~/Library/Application\ Support\$(name)/System/ +--- a/icarus/GNUmakefile 2020-03-20 08:59:06.000000000 +0100 ++++ b/icarus/GNUmakefile 2021-09-09 12:11:52.597265710 +0200 +@@ -46,8 +46,6 @@ + mkdir -p $(prefix)/$(name)/Firmware/ + cp -R Database/* $(prefix)/$(name)/Database/ + cp -R Firmware/* $(prefix)/$(name)/Firmware/ +-else ifeq ($(shell id -un),root) +- $(error "make install should not be run as root") + else ifeq ($(platform),macos) + cp -R out/$(name).app /Applications/$(name).app + else ifneq ($(filter $(platform),linux bsd),) diff --git a/srcpkgs/higan/template b/srcpkgs/higan/template index 500c11f64aa4..05c5a981e4df 100644 --- a/srcpkgs/higan/template +++ b/srcpkgs/higan/template @@ -1,26 +1,29 @@ # Template file for 'higan' pkgname=higan version=110 -revision=1 -wrksrc="higan_v${version}-source" +revision=2 build_wrksrc=higan build_style=gnu-makefile make_build_args='compiler=${CXX} platform=linux' make_install_args='compiler=${CXX} platform=linux prefix=${DESTDIR}/usr' hostmakedepends="unzip pkg-config" makedepends="gtk+-devel gtksourceview2-devel libgomp-devel - SDL2-devel MesaLib-devel libXv-devel libao-devel + SDL2-devel MesaLib-devel libXv-devel libao-devel alsa-lib-devel libopenal-devel pulseaudio-devel" short_desc="Multi-system emulator (SNES/Game Boy/Mega Drive/PC Engine/WonderSwan)" maintainer="John " license="GPL-3.0-or-later, ISC" -homepage="https://byuu.org/emulation/higan/" -distfiles="https://byuu.org/download/higan/higan_v${version}-source.zip" -checksum=1b70d85454aaae557fd5ba5aaed9add8cb8c939f2b7a07a6d3734f971bb07ab7 +homepage="https://github.com/higan-emu/higan" +distfiles="https://github.com/higan-emu/higan/archive/refs/tags/v${version}.tar.gz" +checksum=18457ac2608ab548983c3266ae38e6397d1801773969a796a672e2d9c56c69c5 build_options="icarus" build_options_default="icarus" +pre_install() { + vlicense $wrksrc/LICENSE.txt +} + if [ "$build_option_icarus" ];then post_build() { cd $wrksrc/icarus