32 lines
1 KiB
Bash
32 lines
1 KiB
Bash
# Template file for 'docker'
|
|
pkgname=docker
|
|
version=1.10.0
|
|
revision=2
|
|
hostmakedepends="git go"
|
|
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel"
|
|
short_desc="Pack, ship and run any application as a lightweight container"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="Apache-2.0"
|
|
homepage="http://www.docker.io"
|
|
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
|
|
checksum=4321baec0839a0f57b9bb3a20d84f2ab1ff045fbe631c3aa76bbc1db67012635
|
|
|
|
# These are required at run-time.
|
|
depends="iptables xz git"
|
|
nostrip=yes
|
|
nocross=yes
|
|
only_for_archs="x86_64 x86_64-musl"
|
|
system_groups="docker"
|
|
|
|
do_build() {
|
|
export AUTO_GOPATH=1
|
|
export DOCKER_GITCOMMIT=v$version
|
|
./hack/make.sh dynbinary
|
|
}
|
|
do_install() {
|
|
vbin bundles/${version}/dynbinary/docker-${version} docker
|
|
vinstall bundles/${version}/dynbinary/dockerinit-${version} 755 usr/lib/docker dockerinit
|
|
vinstall contrib/completion/bash/docker 644 usr/share/bash-completion/completions
|
|
vinstall contrib/completion/zsh/_docker 644 usr/share/zsh/site-functions
|
|
vsv docker
|
|
}
|