summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b33d7f0bbaeb9b23ebf365ed1f1bf633c7ce103 (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
# Maintainer: Mitsuru Takigahira <mysticdoll@mysticdoll.com>
pkgname=hypervvssd
pkgver=4.10.1
pkgrel=1
pkgdesc="Hyper-V VSS Daemon for Arch Linux"
url='https://www.kernel.org'
arch=('x86_64')
license=('GPLv3')
depends=()
optdepends=()
makedepends=()
conflicts=()
replaces=()
backup=()
source=("https://www.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.gz"
        "hypervvssd.service"
       )
install=''
md5sums=('SKIP'
         'SKIP'
        )

prepare() {
  tar xvf ${srcdir}/linux-${pkgver}.tar.gz linux-${pkgver}/tools/hv/hv_vss_daemon.c
}

build() {
  gcc ${srcdir}/linux-${pkgver}/tools/hv/hv_vss_daemon.c -o ${srcdir}/hypervvssd
}

package() {
  install -Dm 755 ${srcdir}/hypervvssd ${pkgdir}/usr/local/bin/hypervvssd
  install -Dm 755 ${srcdir}/hypervvssd.service ${pkgdir}/usr/lib/systemd/system/hypervvssd.service
}