# Maintainer: Christian Kampka pkgname=docker-registry pkgver=2.6.0 pkgrel=0 pkgdesc="An implementation of the Docker Registry HTTP API V2 for use with docker 1.6+" url="https://github.com/docker/distribution" arch="x86 x86_64" license="ASL-2.0" makedepends="git go" options="!strip" install="$pkgname.pre-install" pkguserss="docker-registry" pkggroups="docker-registry" source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz docker-registry.initd" builddir="$srcdir/distribution-$pkgver" build() { cd "$builddir" # GOPATH fix mkdir -p Godeps/_workspace/src/github.com/docker ln -s "$builddir" Godeps/_workspace/src/github.com/docker/distribution || return 1 make clean binaries \ DISTRIBUTION_DIR="$builddir" \ GOPATH="$builddir/Godeps/_workspace" \ || return 1 } package() { cd "$builddir" install -D -m 755 bin/registry \ "$pkgdir"/usr/bin/$pkgname || return 1 install -D -m 644 cmd/registry/config-example.yml \ "$pkgdir"/etc/$pkgname/config.yml || return 1 install -D -m 644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname || return 1 install -D -m 755 "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname } sha512sums="589ef6968d4f71a8e0c201c02007fb6cf80a9206e0ba699be6cc6cc29a5bfeb759bc8928a21fb73a3710d747eb99136c228b630889af8870cdfa508e20ff5f4e docker-registry-2.6.0.tar.gz 8f1d0c9d2558fe89158a9766a2357d667269d6992a01f87e81a92a5079cff3810e5a8933b8506c0265c3fd6d97aecbb863370fb778717fe7d5d49b9f9c4faaeb docker-registry.initd"