mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-20 23:32:47 +01:00
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=hvtools
|
|
pkgver=4.4.6
|
|
_kernver=${pkgver%.*}
|
|
pkgrel=0
|
|
pkgdesc="Hyper-v tools"
|
|
url="http://www.kernel.org"
|
|
arch="all"
|
|
license="GPL2"
|
|
depends_dev=""
|
|
makedepends="$depends_dev linux-headers"
|
|
subpackages=""
|
|
source="http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-$_kernver.tar.xz
|
|
http://ftp.kernel.org/pub/linux/kernel/v4.x/patch-$pkgver.xz
|
|
"
|
|
|
|
builddir="$srcdir"/linux-${_kernver}
|
|
|
|
prepare() {
|
|
cd "$builddir"
|
|
if [ "${pkgver%.0}" = "$pkgver" ]; then
|
|
msg "Applying patch-$pkgver.xz"
|
|
unxz -c < "$srcdir"/patch-$pkgver.xz | patch -p1 -N || return 1
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"/tools/hv
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/tools/hv
|
|
install -d "$pkgdir"/usr/bin || return 1
|
|
install -t "$pkgdir"/usr/bin \
|
|
hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon \
|
|
|| return 1
|
|
}
|
|
|
|
md5sums="9a78fa2eb6c68ca5a40ed5af08142599 linux-4.4.tar.xz
|
|
d48f09bf61f2500d70f839e190dc7c5a patch-4.4.6.xz"
|
|
sha256sums="401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2 linux-4.4.tar.xz
|
|
efea93ff30955d445344a83c36678fa8e64111219eeafea2a41fd4ee11f79d68 patch-4.4.6.xz"
|
|
sha512sums="13c8459933a8b80608e226a1398e3d1848352ace84bcfb7e6a4a33cb230bbe1ab719d4b58e067283df91ce5311be6d2d595fc8c19e2ae6ecc652499415614b3e linux-4.4.tar.xz
|
|
73da057476eb31d818eed4b66c883f5ceec65f18ec8ea60d64e48334c7681af4ed4cf7eb8684481f705446a59fd124de9449d22e28805bc9617b6608ecec491d patch-4.4.6.xz"
|