summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorZion Nimchuk2018-08-03 16:53:31 -0700
committerZion Nimchuk2018-08-03 16:53:34 -0700
commit4fa07aba93b20c8105eacf7dfd8a6cd421ca6ac1 (patch)
tree3817066d0b5da39a256bc23a3ddf72306676a94c /PKGBUILD
parent2e6f4b00324156d4b5b6b8dc86053d13f1195278 (diff)
downloadaur-4fa07aba93b20c8105eacf7dfd8a6cd421ca6ac1.tar.gz
Bump version, add license and move url to gitlab
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 241bc5644ab..63ea0897236 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,30 @@
# Maintainer: Zion Nimchuk <zionnimchuk@gmail.com>
pkgname=kurly
-pkgver=1.2.0
+pkgver=1.2.2
pkgrel=1
pkgdesc='Kurly is an alternative to the widely popular curl program written in go.'
arch=('i686' 'x86_64' 'arm')
-url='https://github.com/davidjpeacock/kurly'
+url='https://gitlab.com/davidjpeacock/kurly'
license=('APACHE')
depends=('glibc')
makedepends=('go')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/davidjpeacock/kurly/archive/v${pkgver}.tar.gz")
-sha512sums=('c6bbeae92f9f3743f67689d1f4d3fb19812964d3b274c1383e4b92866a5213593c4d41964363fb654b05a5f1bcb49a150734d08cc23a0774c2b66e1f28b88862')
+source=("https://gitlab.com/davidjpeacock/kurly/-/archive/v${pkgver}/kurly-v${pkgver}.tar.gz")
+sha512sums=('7558c7ba100f5f3c951e076ee93fa96b9d28eed232cd1a6931212aeeb3f52a2d3386085b3018d62accc012cebeb6a28de1d85bfeaed7381708215f14b254dca4')
build() {
- cd ${pkgname}-${pkgver}
+ cd ${pkgname}-v${pkgver}
export GOPATH=$PWD
export GOBIN=$GOPATH/build/bin
go get ./...
- go build
+ go build
}
package() {
- cd ${pkgname}-${pkgver}
- install -Dm755 -t "${pkgdir}"/usr/bin build/bin/${pkgname}-${pkgver}
- mv "${pkgdir}"/usr/bin/${pkgname}-${pkgver} "${pkgdir}"/usr/bin/${pkgname}
+ cd ${pkgname}-v${pkgver}
+ install -Dm755 -t "${pkgdir}"/usr/bin build/bin/${pkgname}-v${pkgver}
+ mv "${pkgdir}"/usr/bin/${pkgname}-v${pkgver} "${pkgdir}"/usr/bin/${pkgname}
+ gzip -f doc/kurly.man
+ install -D -m 0644 doc/kurly.man.gz $pkgdir/usr/share/man/man1/kurly.1.gz
+ install -D -m 0644 LICENSE ${pkgdir}/usr/share/licenses/kurly/LICENCE
}