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

Christian Hesse eworm at archlinux.org
Wed Aug 7 22:09:29 UTC 2019


    Date: Wednesday, August 7, 2019 @ 22:09:29
  Author: eworm
Revision: 498285

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168-lts/repos/community-staging-x86_64/
  r8168-lts/repos/community-staging-x86_64/PKGBUILD
    (from rev 498284, r8168-lts/trunk/PKGBUILD)

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

Copied: r8168-lts/repos/community-staging-x86_64/PKGBUILD (from rev 498284, r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-08-07 22:09:29 UTC (rev 498285)
@@ -0,0 +1,34 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=r8168-lts
+_pkgname=r8168
+pkgver=8.047.02
+pkgrel=2
+pkgdesc="A kernel module for Realtek 8168 network cards for linux-lts"
+url="http://www.realtek.com.tw"
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' "linux-lts>=4.19.57" "linux-lts<4.20")
+makedepends=("linux-lts-headers>=4.19.57" "linux-lts-headers<4.20")
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('29a67eedf1d84a3eae60aeb8bbd843b1e65e104a45a3e2932bd015aab4ebd1eb')
+
+_extramodules=extramodules-4.19-lts
+
+build() {
+	cd "$_pkgname-$pkgver"
+	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
+}
+
+package() {
+	cd "$_pkgname-$pkgver"
+	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/$pkgname.conf"
+}


More information about the arch-commits mailing list