blob: 82b48e920fe454fa1e65178beb37d7403f87faba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Chritsian Kampka <christian at kampka dot net>
pkgname=docker-registry
pkgver=2.1.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_64"
license="Apache 2.0"
makedepends="git go"
options="!strip"
source="$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz
docker-registry.initd"
_builddir="$srcdir/distribution-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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
}
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-example.yml" "${pkgdir}/etc/${pkgname}/config.yml"
install -v -D -m644 ${_builddir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
}
md5sums="d7c6d5aeedf3ea12f9fa82713b7d9221 docker-registry-2.1.0.tar.gz
7bb346742afa5d44ef15df9855f295b1 docker-registry.initd"
sha256sums="872d4b6d59bd6b4a32d959c44e9ab9d57e29a807f1f987b0707d0dd666af96be docker-registry-2.1.0.tar.gz
c441b0cfac0fbb45fbc78563a07d812704d06ceb0a3b46b0a4377e55b02c5c21 docker-registry.initd"
sha512sums="f0d0844a3b9bb1554e54d720d4c90ae7b08241d628645b7f52c1ea7edca99bd2312c7606a4eb7264e1a527f7e54e2f394f937184a60c3ed03f78f28385f7c530 docker-registry-2.1.0.tar.gz
4bedcb02d8f8b4f4f778d8c7af889c5d06affae5340a8e6deb228964294ff0257f2035c95c3d65d123a9e1ca9169c29c84a2c8a38c7c0b393b3221442fc447b3 docker-registry.initd"
|