# Maintainer: Chocobo1 # Previous maintainer : JSkier # Contributor: Ivan Shapovalov pkgname=hyperscan-git pkgver=5.4.1.r2.g5c724f7 pkgrel=1 pkgdesc="High-performance multiple regex matching library" arch=('i686' 'x86_64') url="https://www.hyperscan.io/" license=('BSD') depends=('gcc-libs') makedepends=('git' 'boost' 'cmake' 'ragel') provides=("hyperscan=$pkgver") conflicts=('hyperscan') options=('staticlibs') source=("git+https://github.com/intel/hyperscan.git") sha256sums=('SKIP') prepare() { cd "hyperscan" # https://github.com/intel/hyperscan/issues/292#issuecomment-762635447 sed -i -e 's|\[^ \]|\[^ @\]|g' "cmake/build_wrapper.sh" } pkgver() { cd "hyperscan" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "hyperscan" cmake \ -B "_build" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -DBUILD_STATIC_AND_SHARED=ON \ ./ make -C "_build" } package() { cd "hyperscan" make -C "_build" DESTDIR="$pkgdir" install install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/hyperscan" }