diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-20 15:18:46 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-20 15:28:36 +0200 |
commit | ab84f15b6895e08fa2efe59bd31d1d5aa525a31c (patch) | |
tree | 7180bdd6c64048dc222286a508fa35c74c78c6af /community/docker-registry | |
parent | 1d629c227a9f59ecd90f4b7ddc4aafdfab5116bc (diff) | |
download | aports-ab84f15b6895e08fa2efe59bd31d1d5aa525a31c.tar.bz2 aports-ab84f15b6895e08fa2efe59bd31d1d5aa525a31c.tar.xz |
community/docker-registry: upgrade to 2.6.1
Diffstat (limited to 'community/docker-registry')
-rw-r--r-- | community/docker-registry/APKBUILD | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/community/docker-registry/APKBUILD b/community/docker-registry/APKBUILD index efa44b0f26..8f1a48335e 100644 --- a/community/docker-registry/APKBUILD +++ b/community/docker-registry/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Christian Kampka <christian@kampka.net> pkgname=docker-registry -pkgver=2.6.0 +pkgver=2.6.1 pkgrel=0 pkgdesc="An implementation of the Docker Registry HTTP API V2 for use with docker 1.6+" url="https://github.com/docker/distribution" @@ -16,6 +16,14 @@ source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz docker-registry.initd" builddir="$srcdir/distribution-$pkgver" +prepare() { + default_prepare || return 1 + + cd "$builddir" + sed -i '/^VERSION\s*=/d' Makefile + sed -Ei "s/^(var Version\s*=\s*).*/\1\"$pkgver\"/" version/version.go +} + build() { cd "$builddir" @@ -26,6 +34,7 @@ build() { make clean binaries \ DISTRIBUTION_DIR="$builddir" \ GOPATH="$builddir/Godeps/_workspace" \ + VERSION="$pkgver" \ || return 1 } @@ -45,5 +54,5 @@ package() { "$pkgdir"/etc/init.d/$pkgname } -sha512sums="589ef6968d4f71a8e0c201c02007fb6cf80a9206e0ba699be6cc6cc29a5bfeb759bc8928a21fb73a3710d747eb99136c228b630889af8870cdfa508e20ff5f4e docker-registry-2.6.0.tar.gz +sha512sums="a2175cb5ab049599e1bdae7026dc84e14b79883eca3ceaafda54497a1743103f125f65fa3922c003363dd86aa1422f539aff8b17746b9768968fef757e931c36 docker-registry-2.6.1.tar.gz 8f1d0c9d2558fe89158a9766a2357d667269d6992a01f87e81a92a5079cff3810e5a8933b8506c0265c3fd6d97aecbb863370fb778717fe7d5d49b9f9c4faaeb docker-registry.initd" |