higan: fix dead links & fix lint
This commit is contained in:
parent
615bdfceb5
commit
e9a690ebf6
2 changed files with 31 additions and 6 deletions
22
srcpkgs/higan/patches/makefile-root.patch
Normal file
22
srcpkgs/higan/patches/makefile-root.patch
Normal file
|
@ -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),)
|
|
@ -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 <me@johnnynator.dev>"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue