void-packages/srcpkgs/docker/template

36 lines
1.1 KiB
Bash
Raw Normal View History

2014-03-11 10:04:42 +01:00
# Template file for 'docker'
pkgname=docker
2015-05-15 07:07:29 +02:00
version=1.6.2
2015-05-08 06:57:00 +02:00
revision=1
hostmakedepends="git go"
2014-08-24 09:27:01 +02:00
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel"
2014-03-11 10:04:42 +01:00
short_desc="Easily create lightweight, portable, self-sufficient containers from any application"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2014-03-11 10:04:42 +01:00
license="Apache-2.0"
homepage="http://www.docker.io"
system_groups="docker"
2014-03-11 10:04:42 +01:00
# These are required at run-time.
depends="iptables xz git"
2014-08-24 09:27:01 +02:00
build_options="systemd"
2014-06-12 12:21:34 +02:00
nostrip=yes
2014-08-24 09:27:01 +02:00
nocross=yes
2014-03-11 10:04:42 +01:00
do_fetch() {
git clone -b v${version} git://github.com/docker/docker ${pkgname}-${version}
2014-03-11 10:04:42 +01:00
}
do_build() {
export AUTO_GOPATH=1
./hack/make.sh dynbinary
}
do_install() {
2014-10-17 08:38:26 +02:00
vbin bundles/${version}/dynbinary/docker-${version} docker
2014-03-11 10:04:42 +01:00
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
2014-08-24 09:27:01 +02:00
if [ "$build_option_systemd" ]; then
vinstall contrib/init/systemd/docker.service 644 usr/lib/systemd/system
fi
2014-10-13 13:49:31 +02:00
vsv docker
2014-03-11 10:04:42 +01:00
}