summaryrefslogtreecommitdiff
path: root/extra/nmap/PKGBUILD
blob: 1e8fe459af393cde96983cb627977de4b460cc51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# skip zenmap on i486 - we don't have pygtk there
makedepends=(${makedepends[@]/pygtk/})
_oifs="${IFS}"
IFS=$(printf '\n')
optdepends=(${optdepends[@]/pygtk:*/})
IFS="${_oifs}"

makedepends_i486=(python2)
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