From 9452ba36e5eaae70c19b6648a61790789dad1215 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 6 Jan 2025 20:51:09 +0000 Subject: [PATCH] Allow multiple versions of Zenmap wheel in build tree --- zenmap/install_scripts/windows/PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zenmap/install_scripts/windows/PKGBUILD b/zenmap/install_scripts/windows/PKGBUILD index ec02b11c6..c855af0e8 100644 --- a/zenmap/install_scripts/windows/PKGBUILD +++ b/zenmap/install_scripts/windows/PKGBUILD @@ -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" }