#Maintainer: Iwan Timmer pkgname=runc-git pkgver=r1432.8ad8d40 pkgrel=1 pkgdesc="Container CLI tools" depends=('glibc') makedepends=('godep' 'go') arch=('x86_64' 'i686') source=("git+https://github.com/opencontainers/runc.git") url="http://runc.io/" license=("APACHE") sha256sums=('SKIP') prepare() { cd $srcdir/runc mkdir -p Godeps/_workspace/src/github.com/opencontainers ln -sfT ../../../../../ Godeps/_workspace/src/github.com/opencontainers/runc } build() { cd $srcdir/runc godep go build -o runc . } package() { cd $srcdir/runc install -Dm755 runc $pkgdir/usr/bin/runc } pkgver() { cd $srcdir/$pkgname ( set -o pipefail git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) }