blob: 6b728115f0c39e64048279ddc0610c3192fc25b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"
}
|