void-packages/srcpkgs/Z80Explorer/template

38 lines
1.3 KiB
Bash
Raw Normal View History

2020-07-15 16:34:36 +02:00
# 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 <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="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}
}