summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90687e885f9fdc5278ac4eb801d80f47ab025872 (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
# Maintainer: partcyborg <me@partcyb.org>
# Special thanks to mkubecek for creating the GitHub repository that this sources.

pkgname=vmware-modules-dkms-git
_gitname=vmware-host-modules
pkgver=1.0
pkgrel=3
pkgdesc="${_gitname} is a collection of modified vmware host side kernel modules actually build against all modern kernel headers.  This package wraps it in a dkms module."
arch=("any")
license=("LGPL")
url="https://github.com/mkubecek/${_gitname}"
options=()
install=${pkgname}.install
makedepends=("dkms" "git")
optdepends=("vmware-workstation: Required, but using the AUR package is optional")
source=(
   "dkms.conf.in"
   "dkms.sh.in"
)
sha256sums=(
   "57984b4a196e78f7ec0c2557c03810c8c3cf6ae393ae725b97b8ebebcb02e6a1"
   "c4d6489274c779e418a5fd4d200c85f24903c7f116d2a6ea457fbc54cdd4c7f1"
)

_var_replace() {
   sed \
      -e "s/%PKGVER%/${pkgver}/" \
      -e "s/%DKMSNAME%/${_gitname}/" \
      "${srcdir}/$1" > "${srcdir}/$2"
}

prepare() {
   _var_replace dkms.conf.in dkms.conf
   _var_replace dkms.sh.in dkms.sh
}


package() {
   install -Dm644 "$srcdir/dkms.conf" "$pkgdir/usr/src/vmware-host-modules-${pkgver}/dkms.conf"
   install -Dm755 "$srcdir/dkms.sh" "$pkgdir/usr/src/vmware-host-modules-${pkgver}/dkms.sh"
}