Skip to content

Commit 9452ba3

Browse files
committed
Allow multiple versions of Zenmap wheel in build tree
1 parent 28964cc commit 9452ba3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zenmap/install_scripts/windows/PKGBUILD

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ build() {
3333

3434
package() {
3535
cd "${NMAP_DIR}/zenmap"
36+
whlver=$(${MINGW_PREFIX}/bin/python -c 'import zenmapCore.Version as V; print(V.VERSION.lower())')
3637

3738
MSYS2_ARG_CONV_EXCL="--prefix=" \
3839
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
39-
--destdir="${pkgdir}" dist/*.whl
40+
--destdir="${pkgdir}" dist/zenmap-${whlver}*.whl
4041

4142
install -Dm644 install_scripts/unix/zenmap.desktop "${pkgdir}${MINGW_PREFIX}/share/applications/zenmap.desktop"
4243
}

0 commit comments

Comments
 (0)