void-packages/srcpkgs/Z80Explorer/template

38 lines
1.3 KiB
Bash

# Template file for 'Z80Explorer'
pkgname=Z80Explorer
version=1.01
revision=1
_z80_githash=f3d04cfb36018f1969428cb820af0f50683238e1
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 <pullmoll@t-online.de>"
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="866051047db4bbfb8740245fe55811f443d12ab406b306b36d9d9d102b4d79d8
f05f9cb128ef14b51fa0f782aa75cc2537c30aa90f64d5f97bbdbd41a815bf87"
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}
}