Z80Explorer: use create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-10-24 12:19:30 +07:00
parent a251312615
commit 9ba8b1d8a3
1 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,7 @@ 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"
@ -10,13 +11,14 @@ 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>${pkgname}-${version}.tar.gz
https://github.com/gdevic/Z80Explorer_Z80/archive/${_z80_githash}.tar.gz>${pkgname}_Z80-${version}.tar.gz"
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 ../${pkgname}_Z80-${_z80_githash} resource
mv Z80Explorer-${version}/* .
mv ${pkgname}_Z80-${_z80_githash} resource
vsed -i ${pkgname}.pro -e "s;/opt/\$\${TARGET}/bin;/usr/libexec/${pkgname};"
}