summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0bcfb2ceaaabced4aaf687bb593c5159ed90bb3 (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
# Maintainer: wyzdwdz <wyzdwdz@gmail.com>
pkgname="udpreplay-skasa-git"
pkgver=r89.227666c
pkgrel=1
pkgdesc="a tool to replays UDP packets from a pcap dump"
arch=("x86_64")
url="https://github.com/ska-sa/udpreplay"
license=("GPL-3.0-or-later")
depends=("libpcap" "boost-libs")
makedepends=("boost")
conflicts=("udpreplay")
source=("udpreplay-skasa::git+https://github.com/ska-sa/udpreplay.git")
sha256sums=("SKIP")

pkgver() {
  cd "$srcdir/udpreplay-skasa"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/udpreplay-skasa"
  ./bootstrap.sh
  ./configure --prefix='/usr'
  make
}

package() {
  cd "$srcdir/udpreplay-skasa"
  DESTDIR="$pkgdir" make install
}