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

Massimiliano Torromeo mtorromeo at archlinux.org
Tue Oct 2 08:29:58 UTC 2018


    Date: Tuesday, October 2, 2018 @ 08:29:58
  Author: mtorromeo
Revision: 388983

Updated PKGBUILD to have less differences with r8168

Modified:
  r8168-lts/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-02 08:21:11 UTC (rev 388982)
+++ PKGBUILD	2018-10-02 08:29:58 UTC (rev 388983)
@@ -17,8 +17,8 @@
 
 build() {
 	cd "$_pkgname-$pkgver"
-	_kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-	make -C /usr/lib/modules/$_kernver/build \
+	KERNEL_VERSION="$(</usr/lib/modules/$_extramodules/version)"
+	make -C /usr/lib/modules/$KERNEL_VERSION/build \
 			SUBDIRS="$srcdir/$_pkgname-$pkgver/src" \
 			EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
 			modules
@@ -26,9 +26,9 @@
 
 package() {
 	cd "$_pkgname-$pkgver"
-	install -Dm644 src/$_pkgname.ko "$pkgdir/usr/lib/modules/$_extramodules/$_pkgname.ko"
-	find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+	install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 src/*.ko
+	find "$pkgdir" -name '*.ko' -exec xz {} +
 
 	echo "blacklist r8169" | \
-		install -Dm644 /dev/stdin "$pkgdir/usr/lib/modprobe.d/r8168-lts.conf"
+		install -Dm644 /dev/stdin "$pkgdir/usr/lib/modprobe.d/$pkgname.conf"
 }



More information about the arch-commits mailing list