# Maintainer: Eivind Uggedal pkgname=docker pkgver=1.5.0 pkgrel=0 _gitcommit=a8a31ef pkgdesc="Pack, ship and run any application as a lightweight container" url="http://www.docker.io/" arch="x86_64" license="ASL 2.0" depends="iptables git xz" depends_dev="" makedepends="go sqlite-dev btrfs-progs-dev bash linux-headers" options="!strip" install="$pkgname.pre-install" subpackages=" $pkgname-bash-completion:completion $pkgname-vim:vim " source=" $pkgname-$pkgver.tar.gz::https://github.com/docker/docker/archive/v$pkgver.tar.gz docker.init-ulimit-fix.patch docker-1.5.0-include-sys-stat.patch " _builddir="$srcdir"/$pkgname-$pkgver _buildtags="exclude_graphdriver_aufs exclude_graphdriver_devicemapper" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" export AUTO_GOPATH=1 export DOCKER_GITCOMMIT=$_gitcommit export DOCKER_BUILDTAGS=$_buildtags unset CC # prevent possible ccache issues ./hack/make.sh dynbinary } package() { local ver cd "$_builddir" ver=$(cat VERSION) install -Dm755 bundles/$ver/dynbinary/docker-$ver \ "$pkgdir"/usr/bin/docker install -Dm755 bundles/$ver/dynbinary/dockerinit-$ver \ "$pkgdir"/usr/lib/docker/dockerinit install -Dm755 contrib/init/openrc/docker.initd \ "$pkgdir"/etc/init.d/docker install -Dm644 contrib/init/openrc/docker.confd \ "$pkgdir"/etc/conf.d/docker } completion() { depends="" pkgdesc="Bash completion script for Docker" arch="noarch" install -Dm644 "$_builddir"/contrib/completion/bash/$pkgname \ "$subpkgdir"/usr/share/bash-completion/completions/$pkgname } vim() { local f depends="" pkgdesc="Vim syntax for Docker" arch="noarch" for f in ftdetect/dockerfile.vim syntax/dockerfile.vim; do install -Dm644 "$_builddir"/contrib/syntax/vim/$f \ "$subpkgdir"/usr/share/vim/vimfiles/$f done } md5sums="a622207cd9eb21d95333501d2495ef5d docker-1.5.0.tar.gz 265bb875f508b7aeaa369cd1692b2caa docker.init-ulimit-fix.patch 62e02c0e0eb9727e198381a0a8de0763 docker-1.5.0-include-sys-stat.patch" sha256sums="cf97a1b3a75a63d3b7cb743b5376a1b1bc00eac651dce9e3f094202901a43c48 docker-1.5.0.tar.gz e7c4d5be9ea9090abb531feed91d5d47464283bec66474e263075db211556c72 docker.init-ulimit-fix.patch 448d4818c455e1223cc5c4ce4f6ef9a892ee6fbb4b56be2947f8d1ac7b13b329 docker-1.5.0-include-sys-stat.patch" sha512sums="cc620570c67454bedfae73de86b722a845fce4b0bd46446d1190ae98917010db54fbf82951167ebf62358e53dedb45fff2a7f25014c79b42efc2a5f2b611b4d9 docker-1.5.0.tar.gz d677d0540d3106b42d7745f61ece8e017301771d808ce81c28378543e13dbf5655092d9c1745e84227159882cd9af8c7211a146c716cb5ed10e6b15438611973 docker.init-ulimit-fix.patch e1cf20314518269323b9808e65877f86be5def0366a390576eca1364de118d1dcea07878eee39ab98a2785baac3abc3619c40566c43662bd421492202294ea36 docker-1.5.0-include-sys-stat.patch"