Created
February 8, 2016 06:01
-
-
Save tty170/48ee51678c2091609925 to your computer and use it in GitHub Desktop.
docker-swarm PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Maintainer: Iwan Timmer <irtimmer@gmail.com> | |
pkgname=docker-swarm | |
pkgver=1.1.0 | |
pkgrel=1 | |
pkgdesc="A Docker-native clustering system" | |
depends=('glibc') | |
makedepends=('go' 'godep') | |
arch=('x86_64' 'i686') | |
source=("https://github.com/docker/swarm/archive/v$pkgver.tar.gz") | |
url="https://github.com/docker/swarm/" | |
license=("BSD") | |
sha256sums=('463aa579a0c43f2874bb14f37bac0ce4ae233672f84360d398a206d18e706cf5') | |
prepare() { | |
cd $srcdir | |
mkdir -p src/github.com/docker | |
mv swarm-${pkgver} src/github.com/docker/swarm | |
cd src/github.com/docker/swarm | |
GOPATH=$srcdir godep get | |
} | |
build() { | |
cd $srcdir/src/github.com/docker/swarm | |
GOPATH=$srcdir godep go build | |
} | |
package() { | |
cd $srcdir/src/github.com/docker/swarm | |
install -Dm755 swarm $pkgdir/usr/bin/swarm | |
install -Dm644 LICENSE.doc $pkgdir/usr/share/licenses/$pkgname/LICENSE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment