From 001f3f7dc635c4c0dd6fee7f29e57c9c77af4d55 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 10 Apr 2018 19:23:32 +0000 Subject: community/easypki: move glide to prepare --- community/easypki/APKBUILD | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'community') diff --git a/community/easypki/APKBUILD b/community/easypki/APKBUILD index fa0f815dfb..22ce5b901a 100644 --- a/community/easypki/APKBUILD +++ b/community/easypki/APKBUILD @@ -18,11 +18,17 @@ source="easypki-$pkgver.tar.gz::https://github.com/google/easypki/archive/v$pkgv " builddir="$srcdir/easypki-$pkgver" +prepare() { + export GOPATH="$startdir" + cd "$builddir" + cp "$srcdir"/glide.yaml "$srcdir"/glide.lock . + glide install --skip-test + default_prepare +} + build() { - export GOPATH="$startdir" - cd "$builddir" - cp "$srcdir"/glide.yaml "$srcdir"/glide.lock . - glide install --skip-test + export GOPATH="$startdir" + cd "$builddir" go build -v -ldflags "-s -w" \ -o "$builddir"/easypki ./cmd/easypki } @@ -37,14 +43,14 @@ check() { } glide_init() { - abuild clean deps unpack prepare - cd "$builddir" - export GOPATH="$startdir" - rm -f glide.yaml glide.lock - glide init --non-interactive - glide update - cp glide.yaml glide.lock "$startdir" - cd "$startdir" && abuild checksum clean + abuild clean deps unpack prepare + cd "$builddir" + export GOPATH="$startdir" + rm -f glide.yaml glide.lock + glide init --non-interactive + glide update + cp glide.yaml glide.lock "$startdir" + cd "$startdir" && abuild checksum clean } -- cgit v1.2.3