summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a42ef79b791184529ebb0da0b20e8a7b0082ef88 (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
44
45
46
# Maintainer: Petr Špaček <pspacek@isc.org>
pkgname=packetq-git
pkgver=1.4.3.r1.948c28e
pkgrel=1
pkgdesc="A tool that provides a basic SQL-frontend to PCAP-files"
arch=('x86_64')
url="https://github.com/DNS-OARC/PacketQ"
license=('GPL3')
depends=(
    'zlib'
    )

makedepends=(
    'autoconf'
    'automake'
    'git'
    'libtool'
    'pkg-config'
    'zlib'
    )
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/DNS-OARC/${pkgname%-git}.git#branch=develop")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname%-git}"
    printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
    cd "${srcdir}/${pkgname%-git}"
    ./autogen.sh
    ./configure --prefix=/usr
    make
}

check() {
    cd "${srcdir}/${pkgname%-git}"
    make -k check
}

package() {
    cd "${srcdir}/${pkgname%-git}"
    make DESTDIR="${pkgdir}/" install
}