summaryrefslogtreecommitdiffstats
path: root/wireshark-cli/PKGBUILD
blob: 6946fb4cc92fd06df332bb355f9fb4b9a7b244ab (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
26
27
28
29
30
31
32
33
# Contributor: Hugo Doria <hugo@archlinux.org>
# Maintainer: Florian "Bluewind" Pritz <flo@xssn.at>

pkgname=wireshark-cli
pkgver=1.2.6
pkgrel=1
pkgdesc="A free network protocol analyzer for Unix/Linux and Windows - no GUI"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('heimdal>=1.3.1' 'libpcap>=1.0.0' 'bash' 'gnutls>=2.4.1' 'libcap>=2.16')
makedepends=('bison' 'flex')
url="http://www.wireshark.org/"
replaces=('ethereal')
conflicts=('wireshark')
options=(!libtool)
source=(http://www.wireshark.org/download/src/wireshark-${pkgver}.tar.gz wireshark-1.1.2--as-needed.patch)

build() {
  cd ${srcdir}/wireshark-${pkgver}
  export CFLAGS="-fno-unit-at-a-time ${CFLAGS}"

  patch -Np1 -i $srcdir/wireshark-1.1.2--as-needed.patch || return 1
  autoreconf -f -i || return 1

  ./configure --prefix=/usr --with-ssl --disable-wireshark --disable-gtktest || return 1
  make all || return 1
  make DESTDIR=${pkgdir} install || return 1
}

md5sums=('7de7f59486c034b0cc30743494f14556'
         'cc87d7eb31f256df751b3371b1c426e9')
sha1sums=('62f5571e4786d3fa0cfc3d528f69a5c431e42d75'
          '7a743a42542fa59423870a0205e8ed7aa6bde70e')