summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjskier2017-11-09 09:11:40 -0600
committerjskier2017-11-09 09:11:40 -0600
commit3de9e32a08439139724c60c1dc53b97d0e7e6e12 (patch)
treeaddb51a890f2a1fe56c84fccc730c4155c3f6563
parentf978eb2a52ea3e25a84a86be5d5c16676d256e93 (diff)
downloadaur-hyperscan-git.tar.gz
fix several issues with broken package
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD30
2 files changed, 26 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2442ea9b7e1..613086f7a12 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = hyperscan-git
pkgdesc = A high-performance multiple regex matching library, commonly used with suricata or snort
- pkgver = 03102017
+ pkgver = 4.4.1.r536.gaff7242
pkgrel = 1
+ epoch = 1
url = https://01.org/hyperscan/
- arch = any
+ arch = i686
+ arch = x86_64
license = BSD
- makedepends = boost-libs
+ makedepends = boost
makedepends = ragel
makedepends = cmake
- depends = boost
provides = hyperscan
source = git+https://github.com/01org/hyperscan
sha512sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 00f6c803367..f8fee65d504 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,42 @@
# Maintainer : JSkier <jskier at gmail dot com>
+# Contributor: Ivan Shapovalov <intelfx@intelfx.name>
pkgname=hyperscan-git
-pkgver=03102017
+pkgver=4.4.1.r536.gaff7242
pkgrel=1
+epoch=1
pkgdesc='A high-performance multiple regex matching library, commonly used with suricata or snort'
-arch=('any')
+arch=('i686' 'x86_64')
url="https://01.org/hyperscan/"
license=('BSD')
provides=('hyperscan')
-depends=('boost')
-makedepends=('boost-libs' 'ragel' 'cmake')
+makedepends=('boost' 'ragel' 'cmake')
source=("git+https://github.com/01org/hyperscan")
sha512sums=('SKIP')
+function pkgver() {
+ cd hyperscan
+ git describe --long | sed 's/^v//;s/-/.r/;s/-/./'
+}
+
build() {
- cd "${srcdir}/hyperscan"
+ cd hyperscan
mkdir -p build
cd build
cmake .. \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_STATIC_AND_SHARED=1
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_STATIC_AND_SHARED=1
make
}
package()
{
- cd "$srcdir/hyperscan/build"
- make install DESTDIR="$pkgdir"
+ cd hyperscan
+ install -Dm644 \
+ COPYING \
+ "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+
+ cd build
+ make install DESTDIR="$pkgdir"
}