forked from strongtz/i915-sriov-dkms
-
Notifications
You must be signed in to change notification settings - Fork 5
/
PKGBUILD
31 lines (27 loc) · 903 Bytes
/
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
# Maintainer: Xilin Wu <[email protected]>
_pkgbase=i915-sriov-dkms
pkgname=i915-sriov-dkms-git
pkgver=6.1.11
pkgrel=1
pkgdesc="Linux i915 module patched with SR-IOV support"
arch=('x86_64')
url="https://github.com/strongtz/i915-sriov-dkms"
license=('GPL2')
depends=('dkms')
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
}