summaryrefslogtreecommitdiffstats
path: root/wireshark/PKGBUILD
blob: 56ac8b74ff1258655dace6b285a2232cfffd36a0 (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
# $Id$
# Maintainer: Hugo Doria <hugo@archlinux.org>

pkgname=wireshark
pkgver=1.2.1
pkgrel=1
pkgdesc="A free network protocol analyzer for Unix/Linux and Windows"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('gtk2>=2.14.5' 'heimdal>=1.2.1' 'libpcap>=1.0.0' 'bash' 'gnutls>=2.4.1' 'libcap>=2.16')
makedepends=('bison' 'flex')
url="http://www.wireshark.org/"
replaces=('ethereal')
options=(!libtool)
source=(http://www.wireshark.org/download/src/${pkgname}-${pkgver}.tar.gz wireshark.desktop wireshark.png)
md5sums=('56d760eeec0001b9a0b816ace3e99e44'
         '504ede44c02b2a52f6cbd3bffdf93b8d'
         'e771800a8c977fe223583a453bc27397')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  export CFLAGS="-fno-unit-at-a-time ${CFLAGS}"
  ./configure --prefix=/usr --with-ssl || return 1
  make all || return 1
  make DESTDIR=${pkgdir} install || return 1

  install -Dm644 ${srcdir}/wireshark.png ${pkgdir}/usr/share/icons/wireshark.png
  install -Dm644 ${srcdir}/wireshark.desktop ${pkgdir}/usr/share/applications/wireshark.desktop
}