summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2ccd3483505ad01253ee6e1d7b21e3be8a7d6b1 (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
# Maintainer: Mark Weiman <mark.weiman@markzz.com>

pkgname=bgpstream
pkgver=2.2.0
pkgrel=1
pkgdesc="An open-source software framework for live and historical BGP data analysis, supporting scientific research, operational monitoring, and post-event analysis"
arch=('x86_64')
url="https://bgpstream.caida.org"
license=('GPL')
depends=("libwandio>=1.0.3" "librdkafka")
makedepends=('sqlite3' 'git')
optdepends=("sqlite3: sqlite data interface")
source=("https://github.com/CAIDA/libbgpstream/releases/download/v${pkgver}/libbgpstream-${pkgver}.tar.gz")
md5sums=('37fd05876cb746403a6a4e6252d5435c')

build() {
  cd "${srcdir}/libbgpstream-${pkgver}"
  
  # fix from #227 on GitHub
  sed -i '13436 i #define _GNU_SOURCE' configure

  ./configure --prefix=/usr --with-sqlite
  make
}

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