Skip to content

Instantly share code, notes, and snippets.

@ABelliqueux
Last active February 7, 2022 13:30
Show Gist options
  • Save ABelliqueux/2966b689387f4155de20e167e9b8a86a to your computer and use it in GitHub Desktop.
Save ABelliqueux/2966b689387f4155de20e167e9b8a86a to your computer and use it in GitHub Desktop.
Gendev 0.7.1 AUR PKGBUILD
# Maintainer: Vinicius Correa <vinicius dot correa at zoho dot com>
pkgname=gendev
pkgver=0.7.1
pkgrel=1
pkgdesc="Genesis development environment for Linux"
arch=('any')
url="https://github.com/kubilus1/${pkgname}"
license=('BSD')
depends=('texinfo' 'jdk8-openjdk')
options=(!strip)
makedepends=()
optdepends=()
source=("https://github.com/kubilus1/gendev/releases/download/${pkgver}/${pkgname}_${pkgver}.txz")
md5sums=('08f79f377570871899472ef4503382d3')
package() {
install -dm755 "${pkgdir}/opt"
cp -r "${srcdir}/opt/${pkgname}" "${pkgdir}/opt/${pkgname}"
}
# Optionally, install 'llvm-libs' and edit '/opt/gendev/sgdk/mkfiles/makefile.gen', l.150 and replace '--plugin=liblto_plugin-0.dll' with '--plugin=libLTO.so'
@ABelliqueux
Copy link
Author

A patch file for correcting '/opt/gendev/sgdk/mkfiles/makefile.gen' is available here :

https://gist.github.com/ABelliqueux/6a005097454c18ed8c3ebca4ba3a21bf

--- /opt/gendev/sgdk/mkfiles/makefile.gen	2022-01-24 12:20:29.344222685 +0100
+++ /opt/gendev/sgdk/mkfiles/makefile.gen	2022-01-24 12:20:42.557612093 +0100
@@ -147,7 +147,7 @@
 	$(SIZEBND) out/rom.bin -sizealign 131072
 
 out/symbol.txt: out/rom.out
-	$(NM) --plugin=liblto_plugin-0.dll -n out/rom.out > out/symbol.txt
+	$(NM) --plugin=libLTO.so -n out/rom.out > out/symbol.txt
 
 out/rom.out: out/sega.o out/cmd_ $(LIBMD)
 	$(CC) -B$(BIN) -n -T $(GDK)/md.ld -nostdlib out/sega.o @out/cmd_ $(LIBMD) $(LIB)/libgcc.a -o out/rom.out -Wl,--gc-sections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment