summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Riedel2020-06-15 15:29:54 +0200
committerSebastian Riedel2020-06-15 15:29:54 +0200
commit0d83f1945c8af4a12bd8ebd573dd72e52cbd14c4 (patch)
tree598d51654420fa76722b9a987754845b2dc770e5
parentbb1a920c62df7c87177371d3b1eb6df1a564ab9f (diff)
downloadaur-0d83f1945c8af4a12bd8ebd573dd72e52cbd14c4.tar.gz
Use /opt/gbdk-2020
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 7 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a3eca545d3e..2757ff49180 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gbdk-2020
pkgdesc = An updated version of Game Boy Development Kit
pkgver = 3.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/Zal0/gbdk-2020
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index cda2c90b822..8c548636399 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=gbdk-2020
pkgver=3.2
-pkgrel=1
+pkgrel=2
pkgdesc="An updated version of Game Boy Development Kit"
url="https://github.com/Zal0/gbdk-2020"
license=('MIT')
@@ -18,12 +18,12 @@ sha256sums=('SKIP')
package() {
sed "s|%prefix%bin/|/usr/bin/|g" -i ${pkgname}/gbdk-support/lcc/gb.c
- make -C ${pkgname} gbdk-build SDCCDIR=/usr/
- make -C ${pkgname} gbdk-install-nosdcc SDCCDIR=/usr/
+ make -C ${pkgname} gbdk-build TARGETDIR=/opt/${pkgname} SDCCDIR=/usr/
+ make -C ${pkgname} gbdk-install-nosdcc TARGETDIR=/opt/${pkgname} SDCCDIR=/usr/
mkdir -p ${pkgdir}/usr
mkdir -p ${pkgdir}/opt
- mv ${pkgname}/build/gbdk ${pkgdir}/opt/gbdk
- mv ${pkgdir}/opt/gbdk/bin ${pkgdir}/usr/
- find ${pkgdir}/opt/gbdk/ -type f -name '*.bat' -delete
+ mv ${pkgname}/build/gbdk ${pkgdir}/opt/${pkgname}
+ mv ${pkgdir}/opt/${pkgname}/bin ${pkgdir}/usr/
+ find ${pkgdir}/opt/${pkgname}/ -type f -name '*.bat' -delete
}