diff --git a/srcpkgs/Z80Explorer/files/Z80Explorer-startup.sh b/srcpkgs/Z80Explorer/files/Z80Explorer-startup.sh new file mode 100755 index 00000000000..e0b20e71378 --- /dev/null +++ b/srcpkgs/Z80Explorer/files/Z80Explorer-startup.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Ensure there is an initial configuration file +# +CFG="Baltazar Studios, LLC/Z80Explorer.conf" +if [ ! -f "$HOME/.config/$CFG" ]; then + mkdir -p "$HOME/.config/Baltazar Studios, LLC" + cat >"$HOME/.config/$CFG" <<-EOF + [General] + ResourceDir=/usr/share/Z80Explorer + EOF +fi +/usr/libexec/Z80Explorer/Z80Explorer diff --git a/srcpkgs/Z80Explorer/files/Z80Explorer.desktop b/srcpkgs/Z80Explorer/files/Z80Explorer.desktop new file mode 100644 index 00000000000..d079ec26e17 --- /dev/null +++ b/srcpkgs/Z80Explorer/files/Z80Explorer.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Z80Explorer +Comment=Visual Zilog Z-80 netlist-level simulator +Icon=Z80Explorer +Exec=Z80Explorer +Terminal=false +Type=Application +Categories=Development;IDE; +StartupNotify=true diff --git a/srcpkgs/Z80Explorer/files/Z80Explorer.png b/srcpkgs/Z80Explorer/files/Z80Explorer.png new file mode 100644 index 00000000000..ab75631b61d Binary files /dev/null and b/srcpkgs/Z80Explorer/files/Z80Explorer.png differ diff --git a/srcpkgs/Z80Explorer/template b/srcpkgs/Z80Explorer/template new file mode 100644 index 00000000000..ca6ba0307fe --- /dev/null +++ b/srcpkgs/Z80Explorer/template @@ -0,0 +1,37 @@ +# Template file for 'Z80Explorer' +pkgname=Z80Explorer +version=1.00 +revision=1 +_z80_githash=ae2c0a5b66eca356e91fafc609caf0d9ada0800e +build_style=qmake +hostmakedepends="qt5-qmake qt5-host-tools p7zip" +makedepends="qt5-devel qt5-script-devel" +short_desc="Visual Zilog Z-80 netlist-level simulator" +maintainer="Jürgen Buchmüller " +license="GPL-3.0-or-later" +homepage="https://github.com/gdevic/Z80Explorer" +distfiles="https://github.com/gdevic/Z80Explorer/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz + https://github.com/gdevic/Z80Explorer_Z80/archive/${_z80_githash}.tar.gz>${pkgname}_Z80-${version}.tar.gz" +checksum="abca8fe0317eb67be6b74dfc31237c5948cc56ff1c8b58143f960d092be78d01 + a283029d01751e5b87b2d60845993176cd79c361476bd8f984a402ad5340e863" + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" ${makedepends}" +fi + +post_extract() { + mv ../${pkgname}_Z80-${_z80_githash} resource + vsed -i ${pkgname}.pro -e "s;/opt/\$\${TARGET}/bin;/usr/libexec/${pkgname};" +} + +post_install() { + cd resource + 7z e layermap.7z + 7z e segvdefs.7z + rm *.7z + vmkdir usr/share/${pkgname} + mv * ${DESTDIR}/usr/share/${pkgname}/ + vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications + vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps + vbin ${FILESDIR}/${pkgname}-startup.sh ${pkgname} +}