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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user