diff options
author | Brian Bidulock | 2020-03-19 00:59:04 -0600 |
---|---|---|
committer | Brian Bidulock | 2020-03-19 00:59:04 -0600 |
commit | d9a07a9d9de2d995d095ee0e42073eaee1a6bf35 (patch) | |
tree | 8d1f5451f296cf76ea0148123d637c4190bbb3d2 | |
parent | 274915872a1d0610bcb694261d6d3f3eaf49f10a (diff) | |
download | aur-d9a07a9d9de2d995d095ee0e42073eaee1a6bf35.tar.gz |
better kernel version detection
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = openss7-modules-lts414-git pkgdesc = OpenSS7 Fast-STREAMS and protocol Suites (4.14 Kernel Modules) pkgver = 1.1.8.463.g4d4da615e - pkgrel = 2 + pkgrel = 3 url = http://www.openss7.org arch = x86_64 arch = i686 @@ -31,7 +31,7 @@ pkgbase = openss7-modules-lts414-git makedepends = gawk makedepends = classpath makedepends = popt - depends = linux-lts414=4.14.173-2 + depends = linux-lts414=4.14.173-3 provides = openss7-modules-lts414=1.1.8.463.g4d4da615e conflicts = openss7-modules-lts414 options = !emptydirs @@ -2,15 +2,15 @@ _knm="-lts414" _kvd="4.14.173-3" _kvo="" -_kvv="$(pacman -Si linux${_knm}|awk '/^Version/{print$3}')" || \ -_kvv="$(pacman -Qi linux${_knm}|awk '/^Version/{print$3}')" +_kvv="$(pacman -Qi linux${_knm}|awk '/^Version/{print$3;exit}')" || \ +_kvv="$(pacman -Si linux${_knm}|awk '/^Version/{print$3;exit}')" _kvv="${_kvv:-${_kvd}}" _kvr="${_kvv:+${_kvv}${_knm}}" _kvx="$(echo $_kvr|sed -e 's,\.[0-9][0-9]*-.*,,')" pkgname=openss7-modules${_knm}-git _pkgname=openss7-modules${_knm} pkgver=1.1.8.463.g4d4da615e -pkgrel=2 +pkgrel=3 pkgdesc="OpenSS7 Fast-STREAMS and protocol Suites (${_kvx:-LTS ${_kvx}} Kernel Modules)" arch=('x86_64' 'i686') url="http://www.openss7.org" |