From 0fe60c188661d9a159d050757eb36f250ed70537 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Mon, 16 Apr 2018 21:07:07 +0000 Subject: testing/dep: move to community --- community/dep/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ testing/dep/APKBUILD | 38 -------------------------------------- 2 files changed, 38 insertions(+), 38 deletions(-) create mode 100644 community/dep/APKBUILD delete mode 100644 testing/dep/APKBUILD diff --git a/community/dep/APKBUILD b/community/dep/APKBUILD new file mode 100644 index 0000000000..eb6f81e564 --- /dev/null +++ b/community/dep/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Ed Robinson +# Maintainer: Ed Robinson +pkgname=dep +pkgver=0.4.1 +pkgrel=0 +pkgdesc="Go dependency management tool" +url="https://github.com/golang/dep" +arch="all" +license="BSD-3-Clause" +makedepends="go" +source="$pkgname-$pkgver.tar.gz::https://github.com/golang/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$pkgver + +builddir="$srcdir/src/github.com/golang/$pkgname" + +prepare() { + mkdir -p ${builddir%/*} + mv "$srcdir"/$pkgname-$pkgver "$builddir"/ + default_prepare +} + +build() { + export GOPATH="$srcdir" + cd "$builddir" + go build -ldflags="-X main.version=$pkgver" -o ./bin/dep ./cmd/dep +} + +package() { + cd "$builddir" + install -Dm755 ./bin/dep "$pkgdir"/usr/bin/dep +} + +check() { + cd "$builddir" + ./bin/dep status > /dev/null +} + +sha512sums="29caef5dbbb21020f4ba4024b9c8601da5c7f9f8caa5ab63c6dfa927be2140d33037473600246f35a6e58f94bad592b1974c38b8b9fec6f4d1d68ec8324db3d2 dep-0.4.1.tar.gz" diff --git a/testing/dep/APKBUILD b/testing/dep/APKBUILD deleted file mode 100644 index eb6f81e564..0000000000 --- a/testing/dep/APKBUILD +++ /dev/null @@ -1,38 +0,0 @@ -# Contributor: Ed Robinson -# Maintainer: Ed Robinson -pkgname=dep -pkgver=0.4.1 -pkgrel=0 -pkgdesc="Go dependency management tool" -url="https://github.com/golang/dep" -arch="all" -license="BSD-3-Clause" -makedepends="go" -source="$pkgname-$pkgver.tar.gz::https://github.com/golang/$pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir"/$pkgname-$pkgver - -builddir="$srcdir/src/github.com/golang/$pkgname" - -prepare() { - mkdir -p ${builddir%/*} - mv "$srcdir"/$pkgname-$pkgver "$builddir"/ - default_prepare -} - -build() { - export GOPATH="$srcdir" - cd "$builddir" - go build -ldflags="-X main.version=$pkgver" -o ./bin/dep ./cmd/dep -} - -package() { - cd "$builddir" - install -Dm755 ./bin/dep "$pkgdir"/usr/bin/dep -} - -check() { - cd "$builddir" - ./bin/dep status > /dev/null -} - -sha512sums="29caef5dbbb21020f4ba4024b9c8601da5c7f9f8caa5ab63c6dfa927be2140d33037473600246f35a6e58f94bad592b1974c38b8b9fec6f4d1d68ec8324db3d2 dep-0.4.1.tar.gz" -- cgit v1.2.3