upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / hyperscan / trunk / PKGBUILD
blobc7f7ea139e81686d1bd131a20e0b462482006434
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Alireza Ayinmehr <alireza.darksun@gmail.com>
3 # Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
4 # Contributor: JSkier <jskier at gmail dot com>
5 # Contributor: Ivan Shapovalov <intelfx@intelfx.name>
7 pkgname=hyperscan
8 pkgver=5.4.2
9 pkgrel=1
10 pkgdesc='High-performance regular expression matching library'
11 arch=(x86_64)
12 url=https://www.hyperscan.io
13 license=(BSD)
14 makedepends=(
15   boost
16   cmake
17   git
18   ninja
19   python
20   ragel
22 options=(!lto)
23 _tag=bc3b191ab56055e8560c7cdc161c289c4d76e3d2
24 source=(git+https://github.com/intel/hyperscan.git#tag=${_tag})
25 b2sums=(SKIP)
27 pkgver() {
28   cd hyperscan
29   git describe --tags | sed 's/^v//'
32 build() {
33   cmake -S hyperscan -B build -G Ninja \
34     -DCMAKE_INSTALL_PREFIX=/usr \
35     -DCMAKE_INSTALL_LIBDIR=lib \
36     -DBUILD_SHARED_LIBS=ON \
37     -Wno-dev
38   cmake --build build
41 package() {
42   DESTDIR="${pkgdir}" cmake --install build
43   install -Dm 644 hyperscan/COPYING -t "${pkgdir}"/usr/share/licenses/hyperscan/
46 # vim: ts=2 sw=2 et: