PKGBUILDs/community/docker/PKGBUILD

72 lines
2.4 KiB
Bash
Raw Normal View History

2013-12-20 14:00:48 +00:00
# $Id$
# Maintainer: Sébastien "Seblu" Luttringer
2013-12-20 14:00:48 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - backport BoltDB fixes for AArch64
2013-12-20 14:00:48 +00:00
pkgname=docker
pkgver=1.9.0
pkgrel=1
2013-12-20 14:00:48 +00:00
epoch=1
pkgdesc='Pack, ship and run any application as a lightweight container'
2014-02-22 23:01:39 +00:00
arch=('x86_64')
url='https://www.docker.com/'
2013-12-20 14:00:48 +00:00
license=('Apache')
2014-03-10 18:07:12 +00:00
depends=('bridge-utils' 'iproute2' 'device-mapper' 'sqlite' 'systemd')
2015-05-14 16:20:29 +00:00
makedepends=('git' 'go' 'btrfs-progs' 'go-md2man')
2014-03-10 18:07:12 +00:00
optdepends=('btrfs-progs: btrfs backend support'
'lxc: lxc backend support')
2013-12-20 14:00:48 +00:00
# don't strip binaries! A sha1 is used to check binary consistency.
options=('!strip')
install=$pkgname.install
2015-05-09 15:35:15 +00:00
source=("git+https://github.com/docker/docker.git#tag=v$pkgver"
"$pkgname.sysusers"
'02-fix-unified-cgroup.patch'
'aarch64.patch')
2015-05-09 15:35:15 +00:00
md5sums=('SKIP'
'8cf9900ebada61f352a03465a088da34'
'7fd0504057a60e1275b8ce3e06d53c53'
'1e8d574b55c43a76d5a1d69a7c557d4f')
prepare() {
for _f in "${source[@]}"; do
[[ "$_f" =~ \.patch$ ]] && { msg2 "$_f"; patch -p1 -d docker < "$_f"; }
done
:
}
2013-12-20 14:00:48 +00:00
build() {
cd docker
export AUTO_GOPATH=1
2015-06-25 17:56:25 +00:00
hack/make.sh dynbinary
2015-05-14 16:20:29 +00:00
# man pages
2015-06-25 17:56:25 +00:00
man/md2man-all.sh
2013-12-20 14:00:48 +00:00
}
#check() {
2015-05-14 02:43:12 +00:00
# cd docker
# ./hack/make.sh dyntest
#}
2013-12-20 14:00:48 +00:00
package() {
cd docker
install -Dm755 "bundles/$pkgver/dynbinary/docker-$pkgver" "$pkgdir/usr/bin/docker"
install -Dm755 "bundles/$pkgver/dynbinary/dockerinit-$pkgver" "$pkgdir/usr/lib/docker/dockerinit"
2013-12-20 14:00:48 +00:00
# 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"
2015-07-19 00:00:04 +00:00
install -Dm644 'contrib/completion/fish/docker.fish' "$pkgdir/usr/share/fish/vendor_completions.d/docker.fish"
2013-12-20 14:00:48 +00:00
# systemd
2015-05-09 15:35:15 +00:00
install -Dm644 'contrib/init/systemd/docker.service' "$pkgdir/usr/lib/systemd/system/docker.service"
install -Dm644 'contrib/init/systemd/docker.socket' "$pkgdir/usr/lib/systemd/system/docker.socket"
install -Dm644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
# vim syntax
2015-05-09 15:35:15 +00:00
install -Dm644 'contrib/syntax/vim/syntax/dockerfile.vim' "$pkgdir/usr/share/vim/vimfiles/syntax/dockerfile.vim"
install -Dm644 'contrib/syntax/vim/ftdetect/dockerfile.vim' "$pkgdir/usr/share/vim/vimfiles/ftdetect/dockerfile.vim"
2015-05-14 16:20:29 +00:00
# man
install -dm755 "$pkgdir/usr/share/man"
2015-06-25 17:56:25 +00:00
mv man/man* "$pkgdir/usr/share/man"
2013-12-20 14:00:48 +00:00
}
# vim:set ts=2 sw=2 et: