[arch-commits] Commit in r8168/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Fri Jun 1 01:09:40 UTC 2018


    Date: Friday, June 1, 2018 @ 01:09:40
  Author: heftig
Revision: 335332

8.045.08-61: kernel 4.16.13-1

Modified:
  r8168/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-01 01:09:34 UTC (rev 335331)
+++ PKGBUILD	2018-06-01 01:09:40 UTC (rev 335332)
@@ -5,7 +5,7 @@
 
 pkgname=r8168
 pkgver=8.045.08
-pkgrel=60
+pkgrel=61
 pkgdesc="A kernel module for Realtek 8168 network cards"
 url="http://www.realtek.com.tw"
 license=("GPL")
@@ -23,8 +23,7 @@
 }
 
 build() {
-	_kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-	KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-$_kernver-ARCH/version)
+	KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.16-ARCH/version)
 	msg2 "Kernel = $KERNEL_VERSION"
 
 	cd "$pkgname-$pkgver"
@@ -37,11 +36,10 @@
 }
 
 package() {
-	_kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-	depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} + 1)")
+	depends=("linux>=4.16" "linux<4.17")
 
 	cd "$pkgname-$pkgver"
-	install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 src/*.ko
+	install -Dt "$pkgdir/usr/lib/modules/extramodules-4.16-ARCH" -m644 src/*.ko
 	find "$pkgdir" -name '*.ko' -exec xz {} +
 
 	echo "blacklist r8169" | \



More information about the arch-commits mailing list