diff options
author | juju2143 | 2019-09-20 17:03:39 -0400 |
---|---|---|
committer | juju2143 | 2019-09-20 17:03:39 -0400 |
commit | cfb760587436e6a049c1b57e2ea731ae7e487c99 (patch) | |
tree | cf2e6858cd59072189728c91fc86bed08d65a8c2 | |
parent | d8c90758c90aa38415a0cad515d6e2cdfe111ebf (diff) | |
download | aur-cfb760587436e6a049c1b57e2ea731ae7e487c99.tar.gz |
Update for r31
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | modify-base-path.patch | 11 |
3 files changed, 26 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = x16-emulator-git pkgdesc = An emulator for The 8-Bit Guy's Commander X16 - pkgver = r30.r19.g4c645a8 + pkgver = r31.r2.g6bf9d9e pkgrel = 1 url = http://commanderx16.com/ arch = x86_64 @@ -9,10 +9,13 @@ pkgbase = x16-emulator-git makedepends = git makedepends = pandoc depends = sdl2 + optdepends = x16-rom: ROMs for the emulator provides = x16-emulator conflicts = x16-emulator source = git+https://github.com/commanderx16/x16-emulator.git + source = modify-base-path.patch md5sums = SKIP + md5sums = 5cd0550d2af1b4267c9b9f30eed9691e pkgname = x16-emulator-git @@ -1,6 +1,6 @@ # Maintainer: Julien Savard <juju@juju2143.ca> pkgname=x16-emulator-git -pkgver=r30.r19.g4c645a8 +pkgver=r31.r2.g6bf9d9e pkgrel=1 pkgdesc="An emulator for The 8-Bit Guy's Commander X16" arch=('x86_64') @@ -9,21 +9,28 @@ license=('BSD') groups=('commander-x16') depends=('sdl2') makedepends=('git' 'pandoc') -optdepends=() +optdepends=('x16-rom: ROMs for the emulator') provides=('x16-emulator') conflicts=('x16-emulator') replaces=() options=() install= changelog= -source=("git+https://github.com/commanderx16/x16-emulator.git") -md5sums=('SKIP') +source=("git+https://github.com/commanderx16/x16-emulator.git" + "modify-base-path.patch") +md5sums=('SKIP' + '5cd0550d2af1b4267c9b9f30eed9691e') pkgver() { cd "${pkgname%-git}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd "${pkgname%-git}" + patch -uN main.c ../modify-base-path.patch +} + build() { cd "${pkgname%-git}" make diff --git a/modify-base-path.patch b/modify-base-path.patch new file mode 100644 index 000000000000..00a356f0b305 --- /dev/null +++ b/modify-base-path.patch @@ -0,0 +1,11 @@ +--- main.c.old 2019-09-20 16:32:26.460096000 -0400 ++++ main.c 2019-09-20 16:32:10.830095139 -0400 +@@ -303,7 +303,7 @@ + + run_after_load = false; + +- char *base_path = SDL_GetBasePath(); ++ char *base_path = "/usr/share/x16-rom/"; + + // This causes the emulator to load ROM data from the executable's directory when + // no ROM file is specified on the command line. |