summaryrefslogtreecommitdiff
path: root/extra/nmap/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-06-15 20:29:37 +0200
committerErich Eckner <git@eckner.net>2019-06-15 20:29:37 +0200
commitc9fe8ac451ccdc42d4ba3daf352a63d4271531f2 (patch)
treefdcfce5ad1e3d364c5dc6fd4c7dd3227cc018b5d /extra/nmap/PKGBUILD
parenta5cd9cdcb51c96051c3d129446698a1414c06154 (diff)
downloadpackages-c9fe8ac451ccdc42d4ba3daf352a63d4271531f2.tar.xz
extra/nmap: remove zenmap from i486
Diffstat (limited to 'extra/nmap/PKGBUILD')
-rw-r--r--extra/nmap/PKGBUILD21
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/nmap/PKGBUILD b/extra/nmap/PKGBUILD
new file mode 100644
index 00000000..168f0c39
--- /dev/null
+++ b/extra/nmap/PKGBUILD
@@ -0,0 +1,21 @@
+# skip zenmap on i486 - we don't have pygtk there
+makedepends=(${makedepends[@]/pygtk/})
+optdepends=("${optdepends[@]/pygtk:*/}")
+
+makedepends_i686=(pygtk)
+makedepends_pentium4=(pygtk)
+optdepends_i686=('pygtk: zenmap')
+optdepends_pentium4=('pygtk: zenmap')
+
+if [ "${CARCH}" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s,/configure ,\0--without-zenmap ,
+ '
+ declare -f package | \
+ sed '
+ /zenmap/d
+ '
+ )"
+fi