diff options
Diffstat (limited to 'testing/docker-registry/APKBUILD')
-rw-r--r-- | testing/docker-registry/APKBUILD | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/testing/docker-registry/APKBUILD b/testing/docker-registry/APKBUILD index 1c0e30262d..d5a90f4b9a 100644 --- a/testing/docker-registry/APKBUILD +++ b/testing/docker-registry/APKBUILD @@ -5,7 +5,7 @@ pkgrel=1 pkgdesc="An implementation of the Docker Registry HTTP API V2 for use with docker 1.6+." url="https://github.com/docker/distribution" arch="x86_64" -license="MIT" +license="Apache 2.0" makedepends="git go" source="$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz docker-registry.initd" @@ -22,21 +22,20 @@ prepare() { } build() { - export DISTRIBUTION_DIR="${_builddir}" - export GOPATH="${DISTRIBUTION_DIR}/Godeps/_workspace" - cd "${DISTRIBUTION_DIR}" - - # GOPATH fix - ln -s "${DISTRIBUTION_DIR}" "${DISTRIBUTION_DIR}/Godeps/_workspace/src/github.com/docker/distribution" - - make clean binaries || return 1 + export DISTRIBUTION_DIR="${_builddir}" + export GOPATH="${DISTRIBUTION_DIR}/Godeps/_workspace" + cd "${DISTRIBUTION_DIR}" + # GOPATH fix + ln -s "${DISTRIBUTION_DIR}" "${DISTRIBUTION_DIR}/Godeps/_workspace/src/github.com/docker/distribution" + make clean binaries || return 1 } package() { - export DISTRIBUTION_DIR="${srcdir}/distribution-${pkgver}" - install -v -D -m755 "${srcdir}/${pkgname}.initd" "${pkgdir}/etc/init.d/${pkgname}" - install -v -D -m755 "${DISTRIBUTION_DIR}/bin/registry" "${pkgdir}/usr/bin/${pkgname}" - install -v -D -m644 "${DISTRIBUTION_DIR}/cmd/registry/config.yml" "${pkgdir}/etc/${pkgname}/config.yml" + export DISTRIBUTION_DIR="${srcdir}/distribution-${pkgver}" + install -v -D -m755 "${srcdir}/${pkgname}.initd" "${pkgdir}/etc/init.d/${pkgname}" + install -v -D -m755 "${DISTRIBUTION_DIR}/bin/registry" "${pkgdir}/usr/bin/${pkgname}" + install -v -D -m644 "${DISTRIBUTION_DIR}/cmd/registry/config.yml" "${pkgdir}/etc/${pkgname}/config.yml" + install -v -D -m644 ${_builddir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname} } md5sums="7dc693ced280834bb37913b7164953b7 docker-registry-2.0.1.tar.gz 7bb346742afa5d44ef15df9855f295b1 docker-registry.initd" |