diff options
Diffstat (limited to 'community/docker/PKGBUILD')
-rw-r--r-- | community/docker/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/docker/PKGBUILD b/community/docker/PKGBUILD new file mode 100644 index 000000000..9215782e4 --- /dev/null +++ b/community/docker/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 102652 2013-12-17 09:06:19Z seblu $ +# Maintainer: Sébastien "Seblu" Luttringer + +pkgname=docker +pkgver=0.7.2 +pkgrel=1 +epoch=1 +pkgdesc='Pack, ship and run any application as a lightweight container' +arch=('x86_64') +url='http://www.docker.io/' +license=('Apache') +depends=('bridge-utils' 'iproute2' 'device-mapper' 'lxc' 'sqlite' 'systemd') +makedepends=('git' 'go') +# don't strip binaries! A sha1 is used to check binary consistency. +options=('!strip') +install=$pkgname.install +source=("git+https://github.com/dotcloud/docker.git#tag=v$pkgver") +md5sums=('SKIP') +# magic harcoded path +_magic=src/github.com/dotcloud + +prepare() { + mkdir -p "$_magic" + ln -sfn "../../../docker" "$_magic/docker" +} + +build() { + cd "$_magic/docker" + export GOPATH="$srcdir:$srcdir/$_magic/docker/vendor" + ./hack/make.sh dynbinary +} + +check() { + cd "$_magic/docker" + # Will be added upstream soon + #./hack/make.sh dyntest +} + +package() { + cd "$_magic/docker" + install -Dm755 "bundles/$pkgver/dynbinary/docker-$pkgver" "$pkgdir/usr/bin/docker" + install -Dm755 "bundles/$pkgver/dynbinary/dockerinit-$pkgver" "$pkgdir/usr/lib/docker/dockerinit" + # completion + install -Dm644 "contrib/completion/bash/docker" "$pkgdir/usr/share/bash-completion/completions/docker" + install -Dm644 "contrib/completion/zsh/_docker" "$pkgdir/usr/share/zsh/site-functions/_docker" + # systemd + install -Dm644 "contrib/init/systemd/docker.service" "$pkgdir/usr/lib/systemd/system/docker.service" +} + +# vim:set ts=2 sw=2 et: |