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

Jan Steffens heftig at archlinux.org
Wed Apr 29 17:51:57 UTC 2020


    Date: Wednesday, April 29, 2020 @ 17:51:56
  Author: heftig
Revision: 622295

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 622292, r8168-lts/trunk/PKGBUILD)

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

Copied: r8168-lts/repos/community-testing-x86_64/PKGBUILD (from rev 622292, r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-04-29 17:51:56 UTC (rev 622295)
@@ -0,0 +1,35 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=r8168-lts
+pkgver=8.048.02
+pkgrel=9
+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)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70')
+
+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" \
+			EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+			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