void-packages/srcpkgs/Z80Explorer/template

36 lines
1.2 KiB
Bash

# Template file for 'Z80Explorer'
pkgname=Z80Explorer
version=1.02
revision=1
_z80_githash=6abf07adb65fcb2343f74c7a014cd6421a7dad5d
create_wrksrc=yes
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="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/gdevic/Z80Explorer"
distfiles="https://github.com/gdevic/Z80Explorer/archive/v${version}.tar.gz
https://github.com/gdevic/Z80Explorer_Z80/archive/${_z80_githash}.tar.gz"
checksum="8140eaeff215e49df2c0abb7c10f84c4c721adaced6a756d30e584348078b29b
f6980e5bf3cadcc050d70a359fae7813d3d3b1805935a57dea564caed67b3192"
post_extract() {
mv Z80Explorer-${version}/* .
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}
}