summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65eeba10a3a671acd78c0da7df851e7a82daef25 (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
34
35
36
37
38
39
40
41
42
43
# Maintainer: Simon Gomizelj <sgomizelj@sangoma.com>

pkgname=sipp-git
pkgver=3.5.0.rc1.130.g81e68f8
pkgrel=1
pkgdesc="A free open source test tool and traffic generator for the SIP protocol"
arch=('i686' 'x86_64')
url="http://github.com/sipp"
license=('GPL2')
source=("git+http://github.com/sipp/sipp")
depends=('openssl' 'libpcap')
makedepends=('git')
md5sums=('SKIP')

pkgver() {
  cd "sipp"
  git describe --tags | sed 's/^v//;s/-/./g'
}

prepare() {
  cd "sipp"
  git submodule update --init
}

build() {
  cd "sipp"
  autoreconf -vifs
  ./configure --prefix=/usr \
    --with-openssl \
    --with-pcap

  make
  make sipp sipp_unittest
}

check() {
  cd "sipp"
  ./sipp_unittest
}

package() {
  make -C "sipp" DESTDIR="$pkgdir" install
}