forked from awesometic/realtek-r8125-dkms
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathPKGBUILD
38 lines (35 loc) · 1.35 KB
/
PKGBUILD
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
31
32
33
34
35
36
37
38
# Maintainer: Evine Deng <[email protected]>
_pkgname=r8125
pkgname="${_pkgname}-dkms"
pkgver=9.014.01
pkgrel=1
url="https://www.realtek.com/Download/List?cate_id=584"
pkgdesc="dkms source for the r8125 network driver"
license=('GPL-2.0-only')
arch=('all')
depends=('dkms')
provides=("${pkgname}")
conflicts=("${pkgname}" "realtek-${pkgname}")
replaces=("realtek-${pkgname}")
postinst="postinst.sh"
prerm="prerm.sh"
optdepends=('linux-headers-amd64: Build the module for Debian kernel'
'proxmox-default-headers: Build the module for Proxmox VE kernel')
source=("http://rtitwww.realtek.com/rtdrivers/cn/nic1/${_pkgname}-${pkgver}.tar.bz2"
"dkms.conf")
sha256sums=('f006aa95501738ca55c522812c9d1b473ac781675f3ad88ce341a09316b8aa13'
'1e5fd3543bc30e1783acf6235e22a1e7d28db3ef136f3aac5b34a944315396a6')
prepare() {
cd "${_pkgname}-${pkgver}"
rm src/Makefile_linux24x
sed -e "s|@PKGVER@|${pkgver}|g" ../dkms.conf > src/dkms.conf
sed -e "s|CONFIG_ASPM = y|CONFIG_ASPM = n|" \
-e "s|ENABLE_MULTIPLE_TX_QUEUE = n|ENABLE_MULTIPLE_TX_QUEUE = y|" \
-e "s|ENABLE_RSS_SUPPORT = n|ENABLE_RSS_SUPPORT = y|" \
-i "src/Makefile"
}
package() {
cd "${_pkgname}-${pkgver}"
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README
install -Dm644 -t "${pkgdir}/usr/src/${_pkgname}-${pkgver}" src/*
}