blob: 1164104ee9785f1c52f5e1a4e23e5037f33ca23f (
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
31
|
# Maintainer: Xilin Wu <strongtz@yeah.net>
_pkgbase=i915-sriov-dkms
pkgname=i915-sriov-dkms-git
pkgver=5.15.71
pkgrel=4
pkgdesc="Linux i915 module patched with SR-IOV support"
arch=('x86_64')
url="https://github.com/strongtz/i915-sriov-dkms"
license=('GPL2')
depends=('dkms' 'linux-headers')
makedepends=('git')
conflicts=("${_pkgbase}")
install=${pkgname}.install
source=("git+https://github.com/strongtz/i915-sriov-dkms.git")
md5sums=('SKIP')
package() {
cd "$srcdir/$_pkgbase"
# Copy dkms.conf
install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
echo "* Copying module into /usr/src..."
install -dm755 "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
cp -r ${srcdir}/$_pkgbase/* "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
# Set name and version
sed -e "s/@_PKGBASE@/${_pkgbase}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
}
|