summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index aba41298c2f9..9d5a386fcc37 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname='lego-git'
_pkgname="${pkgname%-git}"
-pkgver=r732.b91dbb6
+pkgver=r734.ec6c22d
pkgrel=1
pkgdesc='Lets Encrypt client and ACME library written in Go (master branch / unstable)'
url='https://github.com/xenolf/lego'
@@ -11,37 +11,37 @@ license=('MIT')
provides=("${_pkgname}")
conflicts=("${_pkgname}" "${pkgname}")
-_gourl=github.com/xenolf/lego
+_xenolfpath=github.com/xenolf
+_legopath="${_xenolfpath}/lego"
depends=()
makedepends=('git' 'make' 'go')
-source=('git+https://github.com/xenolf/lego.git')
+source=("git+${url}.git")
sha512sums=('SKIP')
prepare() {
# setup go env vars
export GOPATH="${srcdir%/src}"
- mkdir -p "${srcdir}/github.com/xenolf/" && cd $_
+ mkdir -p "${srcdir}/${_xenolfpath}/" && cd $_
mv ${srcdir}/${_pkgname} .
}
pkgver() {
- cd "${srcdir}/${_gourl}"
+ cd "${srcdir}/${_legopath}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "${srcdir}/${_gourl}"
+ cd "${srcdir}/${_legopath}"
make build
}
package() {
# Bin
- mkdir -p "$pkgdir/usr/bin"
- install -p -m755 "${srcdir}/${_gourl}/dist/${_pkgname}" "${pkgdir}/usr/bin"
+ install -p -m755 "${srcdir}/${_legopath}/dist/${_pkgname}" "${pkgdir}/usr/bin"
# License
- install -Dm644 "${srcdir}/${_gourl}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "${srcdir}/${_legopath}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}