diff options
author | Brian Bidulock | 2021-05-25 00:14:13 -0600 |
---|---|---|
committer | Brian Bidulock | 2021-05-25 00:14:13 -0600 |
commit | 0c02c294dfc058ddc837a35db6681e48b27b05b8 (patch) | |
tree | 918d841638929e226e6e9bc9598a78d631288688 | |
parent | 8827a19fc5538e8d2ceaa2f03f259895f76bf500 (diff) | |
download | aur-0c02c294dfc058ddc837a35db6681e48b27b05b8.tar.gz |
add provides and conflicts
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 17 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = sipp-git pkgdesc = A free open source test tool and traffic generator for the SIP protocol pkgver = 3.6.1.r42.g9f62be0 - pkgrel = 1 + pkgrel = 2 url = http://github.com/sipp arch = i686 arch = x86_64 @@ -12,8 +12,10 @@ pkgbase = sipp-git depends = libpcap depends = gsl depends = lksctp-tools - source = git+http://github.com/sipp/sipp - md5sums = SKIP + provides = sipp=3.6.1-2 + conflicts = sipp + source = sipp-git::git+http://github.com/sipp/sipp + sha256sums = SKIP pkgname = sipp-git @@ -1,30 +1,33 @@ # Maintainer: Brian Bidulock <bidulock@openss7.org> # Contributor: Simon Gomizelj <simongmzlj@gmail.com> +_pkgname=sipp pkgname=sipp-git pkgver=3.6.1.r42.g9f62be0 -pkgrel=1 +pkgrel=2 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' 'gsl' 'lksctp-tools') makedepends=('git' 'cmake') -md5sums=('SKIP') +source=("$pkgname::git+http://github.com/sipp/sipp") +sha256sums=('SKIP') +provides=("${_pkgname}=${pkgver%%.r*}-${pkgrel}") +conflicts=("${_pkgname}") pkgver() { - cd "sipp" + cd ${pkgname} git describe --long --tags | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g' } prepare() { - cd "sipp" + cd ${pkgname} git submodule update --init } build() { - cd "sipp" + cd ${pkgname} cmake -DCMAKE_INSTALL_PREFIX="/usr" \ -DUSE_SSL=ON \ -DUSE_PCAP=ON \ @@ -34,12 +37,13 @@ build() { } check() { - cd "sipp" + cd ${pkgname} make sipp_unittest ./sipp_unittest } package() { - make -C "sipp" DESTDIR="$pkgdir" install + cd ${pkgname} + make DESTDIR="$pkgdir" install } |