diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-17 20:16:37 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-17 20:46:56 +0100 |
commit | 26b900cced22747cbf6884f3d4edf9fdfdc1130b (patch) | |
tree | c7a55ab6115412be778b5f80d13bf8b3421d7f61 /testing | |
parent | 441bebab56908a3039279bfcd8b051007c2d8ff9 (diff) | |
download | aports-26b900cced22747cbf6884f3d4edf9fdfdc1130b.tar.bz2 aports-26b900cced22747cbf6884f3d4edf9fdfdc1130b.tar.xz |
testing/gomplate: use git tag instead of commit hash
Diffstat (limited to 'testing')
-rw-r--r-- | testing/gomplate/APKBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/testing/gomplate/APKBUILD b/testing/gomplate/APKBUILD index bd25830427..5a3edd21b0 100644 --- a/testing/gomplate/APKBUILD +++ b/testing/gomplate/APKBUILD @@ -2,8 +2,7 @@ pkgname=gomplate _repo="github.com/hairyhenderson/$pkgname" pkgver=1.5.0 -pkgrel=0 -commit=14f288f +pkgrel=1 pkgdesc="A versatile Go template processor." url="https://$_repo" arch="all" @@ -11,22 +10,22 @@ license="MIT" depends="ca-certificates" makedepends="go" install="" -source="$pkgname-$pkgver.tar.gz::$url/archive/$commit.tar.gz" +source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" _godir="${srcdir}/go" builddir="${_godir}/src/${_repo}" prepare() { - default_prepare || return 1 mkdir -p $(dirname ${builddir}) - mv ${srcdir}/$pkgname-${commit}* ${builddir} || return 1 + mv ${srcdir}/$pkgname-$pkgver ${builddir} || return 1 + default_prepare || return 1 } build() { cd ${builddir} export GOPATH="${_godir}" export VERSION="${pkgver}" - export COMMIT="${commit}" + export COMMIT="unknown" make build } @@ -36,6 +35,4 @@ package() { install -Dm755 bin/gomplate "$pkgdir"/usr/bin/gomplate || return 1 } -md5sums="630081d059d802f93c29ee92c2092aba gomplate-1.5.0.tar.gz" -sha256sums="33fbb5fe4d6397390662c2fcf1a35007533dd4977b624ba9a2abc405744c5c35 gomplate-1.5.0.tar.gz" -sha512sums="c77b0b21c5894187bf56120b0caf78fa18f5ca083c76252bfb5a67cb89ef4e2fb8f385091aeaf7026b94b117db61f8890d20d3ba8dc9d806b53c46d9668638b2 gomplate-1.5.0.tar.gz" +sha512sums="5fc19db209751dd7f9a7f12c99f188a8a47d604c42f24eb6b3ccd55f523e691ddd2d0db3eb23e1e0bdde9b25dcb2b8a53b088d68e5a697fa356bd08ea7ca78a9 gomplate-1.5.0.tar.gz" |