[arch-commits] Commit in hyperscan/trunk (PKGBUILD)
Maxime Gauduin
alucryd at gemini.archlinux.org
Wed Jan 19 11:32:45 UTC 2022
Date: Wednesday, January 19, 2022 @ 11:32:44
Author: alucryd
Revision: 1110479
upgpkg: hyperscan 5.4.0-2
Modified:
hyperscan/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++++++++++++++-----------------
1 file changed, 18 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-19 11:16:01 UTC (rev 1110478)
+++ PKGBUILD 2022-01-19 11:32:44 UTC (rev 1110479)
@@ -6,7 +6,7 @@
pkgname=hyperscan
pkgver=5.4.0
-pkgrel=1
+pkgrel=2
pkgdesc='High-performance regular expression matching library'
arch=(x86_64)
url=https://www.hyperscan.io
@@ -15,38 +15,39 @@
boost
cmake
git
+ ninja
python
ragel
)
_tag=64a995bf445d86b74eb0f375624ffc85682eadfe
-source=(git+https://github.com/intel/hyperscan.git#tag=${_tag})
-sha256sums=(SKIP)
+source=(
+ git+https://github.com/intel/hyperscan.git#tag=${_tag}
+ https://github.com/Mic92/hyperscan/commit/e2c4010b1fc1272cab816ba543940b3586e68a0c.patch
+)
+b2sums=('SKIP'
+ '9c703ab4fec035765c3c513589b79dfb98aa9ec79360d0cbda202a8b1957ad81cb0b1107a3cbbb793adb209f3e171d4831cb138c86817ee5533d262a06dd14a4')
+prepare() {
+ cd hyperscan
+ patch -Np1 -i ../e2c4010b1fc1272cab816ba543940b3586e68a0c.patch
+}
+
pkgver() {
cd hyperscan
-
git describe --tags | sed 's/^v//'
}
-prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
-}
-
build() {
- cd build
-
- cmake ../hyperscan \
+ cmake -S hyperscan -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
- -DBUILD_SHARED_LIBS=ON
- make
+ -DBUILD_SHARED_LIBS=ON \
+ -Wno-dev
+ cmake --build build
}
package() {
- make DESTDIR="$pkgdir" -C build install
+ DESTDIR="${pkgdir}" cmake --install build
install -Dm 644 hyperscan/COPYING -t "${pkgdir}"/usr/share/licenses/hyperscan/
}
More information about the arch-commits
mailing list