diff options
author | Konstantin Shalygin | 2018-08-07 20:26:20 +0700 |
---|---|---|
committer | Konstantin Shalygin | 2018-08-07 20:26:20 +0700 |
commit | 59e8fe3b6b168e9c2ac88b449c193600e27dd0c8 (patch) | |
tree | 61ff8673c98ec3cb3d5b705f14a57ab0bdfeec11 /PKGBUILD | |
parent | ef062104a4c3722edec636a506bfd57b0649bbe9 (diff) | |
download | aur-59e8fe3b6b168e9c2ac88b449c193600e27dd0c8.tar.gz |
Allow to define custom linux_localversion.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -13,8 +13,11 @@ makedepends=('git' 'libtool' 'gcc' 'gzip' 'gawk' 'sed') source=("${pkgname}::git+${url}") sha256sums=('SKIP') install="${pkgname}.install" +# define 'lts' for linux-lts package _linux_custom="ARCH" -_kernver="`pacman -Ql linux| awk '/(\/modules\/)([0-9.-])+-(.*)-'${_linux_custom}'\/$/ {print $2}'`" +# define '-lts' for linux-lts package +_linux_localversion="" +_kernver="`pacman -Ql linux${_linux_localversion} | awk '/(\/modules\/)([0-9.-])+-(.*)-'${_linux_custom}'\/$/ {print $2}'`" pkgver() { cd "${srcdir}/${pkgname}" |