diff options
author | SpacingBat3 | 2020-08-31 19:55:35 +0200 |
---|---|---|
committer | SpacingBat3 | 2020-08-31 19:55:35 +0200 |
commit | a7a1d14e2f713102193fdce73dee714797fac60b (patch) | |
tree | bea038dd841e1a7bb3dca14caef6b2be95541692 | |
parent | 254b8fee300e489c1623e9d5155f5466fbacd75b (diff) | |
download | aur-a7a1d14e2f713102193fdce73dee714797fac60b.tar.gz |
PKGBUILD Fix
Fixed a bug when patch wasn't applied after doing an update.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 16 insertions, 11 deletions
@@ -1,6 +1,6 @@ pkgbase = sm64ex-nightly-git pkgdesc = Nightly branch of sm64ex with 60fps patch. PKGBUILD based on sm64pc-git. - pkgver = r563.417d59e7 + pkgver = r573.dd0e86db pkgrel = 1 url = https://github.com/sm64pc/sm64ex arch = any @@ -2,7 +2,7 @@ # Contributor: Hekuran https://github.com/narukeh pkgname=sm64ex-nightly-git -pkgver=r573.dd0e86db +pkgver=r563.417d59e7 pkgrel=1 pkgdesc='Nightly branch of sm64ex with 60fps patch. PKGBUILD based on sm64pc-git.' arch=('any') @@ -23,19 +23,24 @@ pkgver() { } prepare() { - cd "$srcdir/$_gitname" - cp "../../baserom.${_region}.z64" . || { - printf "%$(stty size | awk '{print $2}')s\n" | sed "s/ /░/g" - printf "\\n%s\\n%s\\n\\n" \ - "NO ROM FOUND! Copy your sm64 ROM to \"$(realpath ../../)\" and rename it to \"baserom.${_region}.z64\"." \ - "The default ROM region is US. You have to edit the PKGBUILD if you would like to use a JP or EU version." - printf "%$(stty size | awk '{print $2}')s\n" | sed "s/ /░/g" - } + cd "$srcdir/$_gitname" + cp "../../baserom.${_region}.z64" . || { + printf "%$(stty size | awk '{print $2}')s\n" | sed "s/ /░/g" + printf "\\n%s\\n%s\\n\\n" \ + "NO ROM FOUND! Copy your sm64 ROM to \"$(realpath ../../)\" and rename it to \"baserom.${_region}.z64\"." \ + "The default ROM region is US. You have to edit the PKGBUILD if you would like to use a JP or EU version." + printf "%$(stty size | awk '{print $2}')s\n" | sed "s/ /░/g" + } + + # Makes sure your path hasn't been changed since then: + cd "$srcdir/$_gitname" + + # Patches the 60fps to the game (comment to disable): + patch -p1 < "./enhancements/60fps_ex.patch" } build() { cd "$srcdir/$_gitname" - patch -p1 < "./enhancements/60fps_ex.patch" make VERSION=$_region BETTERCAMERA=1 ${MAKEFLAGS:--j$(nproc)} } |