summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjskier2017-03-10 16:24:39 -0600
committerjskier2017-03-10 16:24:39 -0600
commitf978eb2a52ea3e25a84a86be5d5c16676d256e93 (patch)
tree3fa21724cc3c1e97eda4a795d50cca7842afb726
downloadaur-f978eb2a52ea3e25a84a86be5d5c16676d256e93.tar.gz
Inital package for hyperscan-git
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD30
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2442ea9b7e1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = hyperscan-git
+ pkgdesc = A high-performance multiple regex matching library, commonly used with suricata or snort
+ pkgver = 03102017
+ pkgrel = 1
+ url = https://01.org/hyperscan/
+ arch = any
+ license = BSD
+ makedepends = boost-libs
+ makedepends = ragel
+ makedepends = cmake
+ depends = boost
+ provides = hyperscan
+ source = git+https://github.com/01org/hyperscan
+ sha512sums = SKIP
+
+pkgname = hyperscan-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..00f6c803367
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer : JSkier <jskier at gmail dot com>
+
+pkgname=hyperscan-git
+pkgver=03102017
+pkgrel=1
+pkgdesc='A high-performance multiple regex matching library, commonly used with suricata or snort'
+arch=('any')
+url="https://01.org/hyperscan/"
+license=('BSD')
+provides=('hyperscan')
+depends=('boost')
+makedepends=('boost-libs' 'ragel' 'cmake')
+source=("git+https://github.com/01org/hyperscan")
+sha512sums=('SKIP')
+
+build() {
+ cd "${srcdir}/hyperscan"
+ mkdir -p build
+ cd build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_STATIC_AND_SHARED=1
+ make
+}
+
+package()
+{
+ cd "$srcdir/hyperscan/build"
+ make install DESTDIR="$pkgdir"
+}