26 lines
932 B
Bash
26 lines
932 B
Bash
# Template file for 'GCP-Guest-Environment'
|
|
pkgname=GCP-Guest-Environment
|
|
version=20191210
|
|
revision=5
|
|
build_wrksrc="packages/python-google-compute-engine"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-distro"
|
|
depends="${hostmakedepends} socklog-void"
|
|
checkdepends="${depends} python3-pytest python3-pytest-cov"
|
|
short_desc="Packages for Google Compute Engine Linux images"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/GoogleCloudPlatform/compute-image-packages"
|
|
distfiles="https://github.com/GoogleCloudPlatform/compute-image-packages/archive/v${version}.tar.gz"
|
|
checksum=19a2ca537f876e4a19341646f2865c6429b8ea041a3a6651ff8c1ed966f72fe1
|
|
|
|
do_check() {
|
|
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -k 'not CallDhclientIpv6'
|
|
}
|
|
|
|
post_install() {
|
|
for _i in Guest-Initialization accounts clock-skew ip-forwarding ; do
|
|
vsv GCP-$_i;
|
|
done
|
|
}
|