1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 06:29:03 +00:00

Allow multiple versions of Zenmap wheel in build tree

This commit is contained in:
dmiller
2025-01-06 20:51:09 +00:00
parent 28964ccfd3
commit 9452ba36e5

View File

@@ -33,10 +33,11 @@ build() {
package() {
cd "${NMAP_DIR}/zenmap"
whlver=$(${MINGW_PREFIX}/bin/python -c 'import zenmapCore.Version as V; print(V.VERSION.lower())')
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
--destdir="${pkgdir}" dist/zenmap-${whlver}*.whl
install -Dm644 install_scripts/unix/zenmap.desktop "${pkgdir}${MINGW_PREFIX}/share/applications/zenmap.desktop"
}