1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-16 10:26:33 +00:00

Fixes for Windows Zenmap build

This commit is contained in:
dmiller
2024-04-01 22:32:49 +00:00
parent 036714cde2
commit dbedc5838b
6 changed files with 50 additions and 25 deletions

View File

@@ -17,15 +17,26 @@ pkgdesc="Graphical Nmap frontend and results viewer"
url="https://nmap.org/zenmap/"
arch=("any")
license=("NPSL")
source=("https://nmap.org/dist/nmap-${pkgver}.tar.bz2")
sha256sums=("SKIP")
#source=("https://nmap.org/dist/nmap-${pkgver}.tar.bz2")
#sha256sums=("SKIP")
mingw_arch=('mingw64')
depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-gobject")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
"${MINGW_PACKAGE_PREFIX}-python-wheel")
build() {
cd "${NMAP_DIR}/zenmap"
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${NMAP_DIR}/zenmap"
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m pip install --no-deps --force-reinstall --prefix=${MINGW_PREFIX} --root="${pkgdir}" .
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 install_scripts/unix/zenmap.desktop "${pkgdir}${MINGW_PREFIX}/share/applications/zenmap.desktop"
}