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

Jan Steffens heftig at archlinux.org
Fri Jan 17 23:51:45 UTC 2020


    Date: Friday, January 17, 2020 @ 23:51:44
  Author: heftig
Revision: 552945

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 552941, r8168/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-01-17 23:51:44 UTC (rev 552945)
@@ -0,0 +1,40 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.00
+pkgrel=2
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw"
+license=("GPL")
+arch=('x86_64')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('0aacba20d985ba5e67e21bdad89a099e102f7bef3027adb647ffbb80b01ac8d0')
+
+build() {
+	local KERNEL_VERSION=$(</usr/src/linux/version)
+	msg2 "Kernel = $KERNEL_VERSION"
+
+	cd "$pkgname-$pkgver"
+	# avoid using the Makefile directly -- it doesn't understand
+	# any kernel but the current.
+	make -C /usr/src/linux M="$PWD/src" \
+			EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+			modules
+}
+
+package() {
+	depends=('glibc' 'linux')
+
+	local extradir=/usr/lib/modules/$(</usr/src/linux/version)/extramodules
+	cd "$pkgname-$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