blob: 7498a7524266667c8421e73be345c128427e9b99 (
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
47
|
# Maintainer: Sumit Pathak <sumitpathak2002@gmail.com>
pkgname=spicy-git
pkgver=r1.0.0
pkgrel=1
pkgdesc="A parser generator and runtime for network protocol parsers (from Zeek Project) - Git version"
arch=('x86_64')
url="https://github.com/zeek/spicy"
license=('BSD')
depends=('bison' 'flex' 'cmake' 'gcc' 'make' 'python' 'libpcap' 'zlib')
makedepends=('git' 'python-setuptools' 'swig')
provides=('spicy')
conflicts=('spicy')
source=("${pkgname}::git+https://github.com/zeek/spicy.git")
md5sums=('SKIP')
# derive pkgver from the latest tag
pkgver() {
cd "$srcdir/$pkgname"
git describe --tags | sed 's/^v//;s/-/r/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
# ensure submodules (e.g., 3rdparty/doctest) are present
git submodule update --init --recursive
}
build() {
cd "$srcdir/$pkgname"
# run the upstream configure wrapper (creates build/ and configures via CMake)
./configure --prefix=/usr
# compile in the build directory
make -C build
}
check() {
cd "$srcdir/$pkgname/build"
make test
}
package() {
cd "$srcdir/$pkgname"
# reinstall into $pkgdir
make -C build DESTDIR="$pkgdir" install
}
|