aboutsummaryrefslogtreecommitdiff
path: root/repo/r8125-dkms
diff options
context:
space:
mode:
Diffstat (limited to 'repo/r8125-dkms')
-rw-r--r--repo/r8125-dkms/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/repo/r8125-dkms/PKGBUILD b/repo/r8125-dkms/PKGBUILD
new file mode 100644
index 0000000..6b72811
--- /dev/null
+++ b/repo/r8125-dkms/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Bernd Amend <bernd.amend(at)gmail(dot)com>
+# Contributor: Alex Avance <aravance(at)gmail(dot)com>
+# Contributor: Shen-Ta Hsieh <ibmibmibm(at)gmail(dot)com>
+
+_pkgname=r8125
+pkgname=${_pkgname}-dkms
+pkgver=9.006.04
+pkgrel=1
+url="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software"
+pkgdesc="Kernel module for RTL8125"
+license=('GPL2')
+arch=('any')
+depends=('dkms')
+conflicts=("${_pkgname}")
+optdepends=('linux-headers: Build the module for Arch kernel'
+ 'linux-lts-headers: Build the module for LTS Arch kernel')
+source=("http://rtitwww.realtek.com/rtdrivers/cn/nic1/${_pkgname}-${pkgver}.tar.bz2" 'dkms.conf')
+sha256sums=('390c28fe83338ba500728186b566546ddb4ed8305ac6b4d9646040975978059b'
+ 'ad4c67e0c74661d19b74872f98254184d4b04e32e4c57b338a84fbcefa4c721f')
+
+package() {
+ dir_name="${_pkgname}-${pkgver}"
+ install -d "${pkgdir}"/usr/src/${dir_name}/
+ install -Dm644 dkms.conf "${dir_name}"/src/* "${pkgdir}/usr/src/${dir_name}/"
+
+ sed -e "s/@_PKGNAME@/${_pkgname}/g" \
+ -e "s/@PKGVER@/${pkgver}/g" \
+ -i "${pkgdir}/usr/src/${dir_name}/dkms.conf"
+}
+