diff options
Diffstat (limited to 'community/godep')
-rw-r--r-- | community/godep/APKBUILD | 42 |
1 files changed, 15 insertions, 27 deletions
diff --git a/community/godep/APKBUILD b/community/godep/APKBUILD index 42ca27d87f..15275bafe4 100644 --- a/community/godep/APKBUILD +++ b/community/godep/APKBUILD @@ -1,44 +1,32 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: pkgname=godep -pkgver=35 +pkgver=78 pkgrel=0 pkgdesc="Dependency tool for go" url="http://github.com/tools/godep" arch="all" license="BSD" -depends="" -depends_dev="" -makedepends="$depends_dev go mercurial" -install="" -subpackages="" -options="!strip" -source="${pkgname}-${pkgver}.tar.gz::https://github.com/tools/${pkgname}/archive/v${pkgver}.tar.gz" - -_builddir="${srcdir}/${pkgname}-${pkgver}" +makedepends="go" +source="$pkgname-$pkgver.tar.gz::https://github.com/tools/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/src/github.com/tools/$pkgname" 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 + mkdir -p "${builddir%/*}" + mv "$srcdir"/$pkgname-$pkgver "$builddir" || return 1 + + default_prepare } build() { - cd "$_builddir" - mkdir -p ${_builddir}/src/github.com/tools - ln -sf ${_builddir} ${_builddir}/src/github.com/tools/${pkgname} - GOPATH="${_builddir}" go build + cd "$builddir" + GOPATH="$srcdir" go build } package() { - cd "$_builddir" - install -Dm755 godep-${pkgver}\ - "${pkgdir}/usr/bin/godep" || return 1 + install -D -m 755 "$builddir"/$pkgname "$pkgdir"/usr/bin/godep } -md5sums="ab8df57c3e200421ece9bb723678b81d godep-35.tar.gz" -sha256sums="381dbf28a68356ed1ec650559d673b7631e2e85e88afeba4ec0e52a6ca46656f godep-35.tar.gz" -sha512sums="df296d894ad802eab6e300a25339ab6ec7cf79399ce237393d35444cf2bcb07c1d4fcab517acae029b0963020884fab61d027eb3466c3871e43e8d1daec316ad godep-35.tar.gz" + +md5sums="57743797051d9a819133f3acab8e4806 godep-78.tar.gz" +sha256sums="247cbebffff1a5e077287cc7e2f84ca30266f9e535d1182823ececf9bf37b18a godep-78.tar.gz" +sha512sums="dd98d0bd7194a0c530d81982b3681c6a97dfa75668a3cfa9395ddce5921c437f958ab757fd7e19d7ff0a6fc339c16cf35f1844a857c54a905af99bc69d2a3b83 godep-78.tar.gz" |