diff options
Diffstat (limited to 'community')
-rw-r--r-- | community/godep/APKBUILD | 42 |
1 files changed, 11 insertions, 31 deletions
diff --git a/community/godep/APKBUILD b/community/godep/APKBUILD index 741a4b7723..42ca27d87f 100644 --- a/community/godep/APKBUILD +++ b/community/godep/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: pkgname=godep -pkgver=0_git20140825 -pkgrel=1 +pkgver=35 +pkgrel=0 pkgdesc="Dependency tool for go" url="http://github.com/tools/godep" arch="all" @@ -13,30 +13,9 @@ makedepends="$depends_dev go mercurial" install="" subpackages="" options="!strip" -source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.bz2" -disturl="dev.alpinelinux.org:/archive/$pkgname/" +source="${pkgname}-${pkgver}.tar.gz::https://github.com/tools/${pkgname}/archive/v${pkgver}.tar.gz" - -_builddir="$srcdir"/src/github.com/tools/$pkgname.git - -snapshot() { - local _date=$(date +%Y%m%d) - local _version=${verbase:-0}_git${_date} - abuild clean - mkdir -p "$srcdir" && cd "$srcdir" - hg clone http://code.google.com/p/go.tools \ - "$srcdir"/src/code.google.com/p/go.tools || return 1 - git clone git://github.com/tools/$pkgname.git \ - "$srcdir"/src/github.com/tools/$pkgname.git || return 1 - git clone git://github.com/kr/fs.git \ - "$srcdir"/src/github.com/kr/fs || return 1 - tar jcf $pkgname-$_version.tar.bz2 src || return 1 - rsync --progress -La $pkgname-$_version.tar.bz2 $disturl || return 1 - cd "$startdir" - sed -i -e "s/^pkgver=.*/pkgver=${_version}/" \ - APKBUILD || return 1 - abuild checksum -} +_builddir="${srcdir}/${pkgname}-${pkgver}" prepare() { local i @@ -50,15 +29,16 @@ prepare() { build() { cd "$_builddir" - GOPATH="${srcdir}" go build + mkdir -p ${_builddir}/src/github.com/tools + ln -sf ${_builddir} ${_builddir}/src/github.com/tools/${pkgname} + GOPATH="${_builddir}" go build } package() { cd "$_builddir" - install -Dm755 godep.git \ + install -Dm755 godep-${pkgver}\ "${pkgdir}/usr/bin/godep" || return 1 } - -md5sums="9c26b522c2b9fbfe49afbf24b37cb943 godep-0_git20140825.tar.bz2" -sha256sums="0d5428715550af96fef003262bb010e8ed86721b6740a88fa3e566b3e66e74f5 godep-0_git20140825.tar.bz2" -sha512sums="842250d4359dcf812f58accb68305740d5a776b3f4f083420638ca12d7d5ee27c9f6b0eb252a46f8794c06926f6d739a5dd41a631499d42885af83ba190e79b9 godep-0_git20140825.tar.bz2" +md5sums="ab8df57c3e200421ece9bb723678b81d godep-35.tar.gz" +sha256sums="381dbf28a68356ed1ec650559d673b7631e2e85e88afeba4ec0e52a6ca46656f godep-35.tar.gz" +sha512sums="df296d894ad802eab6e300a25339ab6ec7cf79399ce237393d35444cf2bcb07c1d4fcab517acae029b0963020884fab61d027eb3466c3871e43e8d1daec316ad godep-35.tar.gz" |