[arch-commits] Commit in r8168-lts/repos (3 files)

Andreas Radke andyrtr at gemini.archlinux.org
Thu Aug 25 14:04:02 UTC 2022


    Date: Thursday, August 25, 2022 @ 14:04:01
  Author: andyrtr
Revision: 1278574

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168-lts/repos/community-testing-x86_64/
  r8168-lts/repos/community-testing-x86_64/PKGBUILD
    (from rev 1278573, r8168-lts/trunk/PKGBUILD)
  r8168-lts/repos/community-testing-x86_64/keys/

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: r8168-lts/repos/community-testing-x86_64/PKGBUILD (from rev 1278573, r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-08-25 14:04:01 UTC (rev 1278574)
@@ -0,0 +1,43 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=r8168-lts
+pkgver=8.050.03
+pkgrel=20
+pkgdesc="A kernel module for Realtek 8168 network cards for linux-lts"
+url="http://www.realtek.com.tw"
+license=("GPL")
+arch=('x86_64')
+makedepends=('linux-lts-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/r8168-$pkgver.tar.gz
+        https://github.com/mtorromeo/r8168/releases/download/$pkgver/r8168-$pkgver.tar.gz.asc)
+sha256sums=('76f9e7c26a8ade7b01dd34060f5b17d74387f15e9b6baa6dbba8c43634a31ce6'
+            'SKIP')
+validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF')
+
+build() {
+	cd "r8168-$pkgver"
+	# avoid using the Makefile directly -- it doesn't understand
+	# any kernel but the current.
+	make -C /usr/src/linux-lts M="$PWD/src" \
+		ENABLE_USE_FIRMWARE_FILE=y \
+		CONFIG_R8168_NAPI=y \
+		CONFIG_R8168_VLAN=y \
+		CONFIG_ASPM=y \
+		ENABLE_S5WOL=y \
+		ENABLE_EEE=y \
+		modules
+}
+
+package() {
+	depends=('glibc' 'linux-lts')
+
+	local extradir=/usr/lib/modules/$(</usr/src/linux-lts/version)/extramodules
+	cd "r8168-$pkgver"
+	install -Dt "$pkgdir$extradir" -m644 src/*.ko
+	find "$pkgdir" -name '*.ko' -exec xz {} +
+
+	echo "blacklist r8169" | \
+		install -Dm644 /dev/stdin "$pkgdir/usr/lib/modprobe.d/$pkgname.conf"
+}
+
+# vim:set sw=0 noet:



More information about the arch-commits mailing list