From 0325086bbb579509b96a489503140765b549a280 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 | 11 +++++++++++ srcpkgs/higan/template | 13 ++++++++----- 2 files changed, 19 insertions(+), 5 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..c76e567cb0ff --- /dev/null +++ b/srcpkgs/higan/patches/makefile-root.patch @@ -0,0 +1,11 @@ +--- 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/ diff --git a/srcpkgs/higan/template b/srcpkgs/higan/template index 500c11f64aa4..65e19810fba6 100644 --- a/srcpkgs/higan/template +++ b/srcpkgs/higan/template @@ -2,25 +2,28 @@ pkgname=higan version=110 revision=1 -wrksrc="higan_v${version}-source" 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