38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'lxd'
|
|
pkgname=lxd
|
|
version=3.13
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/lxc/lxd
|
|
go_build_tags=libsqlite3
|
|
go_package="${go_import_path}/lxd ${go_import_path}/lxc
|
|
${go_import_path}/lxd-p2c ${go_import_path}/fuidshift"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="lxc-devel acl-devel dqlite-devel"
|
|
depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables"
|
|
short_desc="Next generation system container manager"
|
|
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://linuxcontainers.org/lxd"
|
|
distfiles="https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz"
|
|
checksum=025138d2ac7ade6e34446f90f2d25ded86aedcad726d85ba8f2b7188dab75acd
|
|
system_groups="lxd"
|
|
|
|
do_configure() {
|
|
# the LXD tarball packages up the required dependencies
|
|
ln -s "$wrksrc/dist" "$GOPATH"
|
|
}
|
|
|
|
do_build() {
|
|
# don't go-get the dependencies, just install with what's there
|
|
cd "$GOSRCPATH"
|
|
go_package=${go_package:-$go_import_path}
|
|
go install -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
|
|
}
|
|
|
|
post_install() {
|
|
vinstall scripts/bash/lxd-client 644 /usr/share/bash-completion/completions lxd
|
|
vlicense COPYING LICENSE
|
|
vsv lxd
|
|
}
|