blob: 32b1b664e9fd7b4c91f65f85edd55bc58a8c5299 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Alex Potapenko <opotapenko@gmail.com>
# Submitter and original maintainer: Imperator Storm <ImperatorStorm11@protonmail.com>
# Temporary Maintainer: bluetail
pkgname=vmware-host-modules-dkms-fix-git
_pkgname=vmware-host-modules
pkgver=17.6.0
_branch_version=17.6.0
url="https://github.com/mkubecek/vmware-host-modules"
pkgrel=1
epoch=2
pkgdesc="VMware (Player and Workstation) host kernel modules with patches needed to build against recent kernels"
arch=('x86_64' 'aarch64' 'i386')
license=('GPL2')
provides=(vmware-host-modules-dkms vmware-host-modules)
conflicts=(vmware-host-modules-dkms vmware-host-modules)
depends=('dkms')
makedepends=('git')
# Use the patched 17.6.0 tarball from user-attachments
source=(
"vmware-host-modules-workstation-${_branch_version}.tar.gz::https://github.com/user-attachments/files/19986002/vmware-host-modules-workstation-${_branch_version}.tar.gz"
dkms-vmmon.conf
dkms-vmnet.conf
)
# Compute and replace the following sha256 for the tarball:
# $ sha256sum vmware-host-modules-workstation-${_branch_version}.tar.gz
sha256sums=('a829d0d208467e7f95087680b8390c45e71f90a9cb982388700f02fbb2bd5324'
'ed52e41b8f2b525915d47c350f4e6dec064b01d6f894e32b513a01e0f1162c4d'
'b218e4ec45f5c2f960333d209442a0a98fa525ee034947c0be724f2f77d0a4a9')
prepare() {
# Extract the user-provided tarball into the build directory
tar xf "${srcdir}/vmware-host-modules-workstation-${_branch_version}.tar.gz" -C "${srcdir}"
}
package() {
install -dm755 "${pkgdir}/usr/src/vmmon-1"
install -dm755 "${pkgdir}/usr/src/vmnet-1"
# Copy extracted sources; adjust for the workstation- prefix in the extracted directory name
cp -r "${srcdir}/vmware-host-modules-workstation-${_branch_version}/vmmon-only/"* "${pkgdir}/usr/src/vmmon-1/"
cp -r "${srcdir}/vmware-host-modules-workstation-${_branch_version}/vmnet-only/"* "${pkgdir}/usr/src/vmnet-1/"
# Install DKMS configs
cp "${srcdir}/dkms-vmmon.conf" "${pkgdir}/usr/src/vmmon-1/dkms.conf"
cp "${srcdir}/dkms-vmnet.conf" "${pkgdir}/usr/src/vmnet-1/dkms.conf"
}
|