summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2017-07-01 14:50:10 -0400
committerChris Severance2017-07-01 14:50:10 -0400
commit8482d465df3cecac82342438f720aee7a7ebb398 (patch)
treef8246df46dc135e6581a1161661b640f165fa761
parent0ccc3c5b27a9200384f807194a344fc9cfa8c26f (diff)
downloadaur-8482d465df3cecac82342438f720aee7a7ebb398.tar.gz
Down to lua51
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD15
2 files changed, 14 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 734c692f440..9616b577e98 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Sat Jul 1 18:49:23 UTC 2017
pkgbase = pom-ng-git
pkgdesc = Packet-o-Matic real time network packet capture forensic tool
- pkgver = 0.0.18.r53.g497861c
+ pkgver = 0.0.18.r83.g6bd33ac
pkgrel = 1
url = http://www.packet-o-matic.org/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 448d93d010f..f0c1750055c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@
set -u
_pkgname='pom-ng'
pkgname="${_pkgname}-git"
-pkgver=0.0.18.r53.g497861c
+pkgver=0.0.18.r83.g6bd33ac
pkgrel=1
pkgdesc='Packet-o-Matic real time network packet capture forensic tool'
arch=('i686' 'x86_64')
@@ -32,7 +32,7 @@ provides=("${_pkgname}=${pkgver%%.r*}")
conflicts=("${_pkgname}")
_srcdir="${pkgname^^}"
_giturl="https://github.com/gmsoft-tuxicoman/${_pkgname}"
-_verwatch=("${_giturl}/releases" "${_giturl#*github.com}/archive/v\(.*\)\.tar\.gz" 'l')
+_verwatch=("${_giturl}/releases.atom" '\s\+<title>v\([^<]\+\).*' 'f') # RSS
source=("${_srcdir}::${_giturl//https:/git:}.git")
sha256sums=('SKIP')
@@ -47,6 +47,8 @@ prepare() {
set -u
cd "${_srcdir}"
autoreconf -f -i
+ lua_CFLAGS="$(pkg-config --cflags lua51)" \
+ lua_LIBS="$(pkg-config --libs lua51)" \
./configure --prefix='/usr'
#cp -p '/usr/include/libexif/exif-data.h' .
set +u
@@ -55,14 +57,19 @@ prepare() {
build() {
set -u
cd "${_srcdir}"
- make -s -j "$(nproc)"
+ if [ ! -z "${MAKEFLAGS:-}" ] && [ "${MAKEFLAGS}" != "${MAKEFLAGS//-j/}" ]; then
+ nice make -s
+ else
+ local _nproc="$(lscpu -p | grep '^[0-9]' | cut -d',' -f2-3 | sort -u | wc -l)"; _nproc=$((_nproc>4?4:_nproc))
+ nice make -s -j "${_nproc}"
+ fi
set +u
}
package() {
set -u
cd "${_srcdir}"
- make DESTDIR="${pkgdir}" install
+ make -j1 DESTDIR="${pkgdir}" install
install -d "${pkgdir}/usr/share/${_pkgname}/addons"
set +u
}