summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNoel Kuntze2018-07-24 15:05:14 +0200
committerNoel Kuntze2018-07-24 15:05:14 +0200
commit955d90227e063624550b23fe7ee277c54392433e (patch)
treefb0a037fd188fc5b8ad20aabfa521261ea98bd7b /PKGBUILD
parent6e3d6b53275bb07b082be53866c1881e73292225 (diff)
downloadaur-955d90227e063624550b23fe7ee277c54392433e.tar.gz
Update PKGBUILD to incorporate changes contributed by Stephan Eisvogel
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD52
1 files changed, 28 insertions, 24 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f94b7a808b9..96a8e123751 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,55 +1,59 @@
-
-# Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
+# Maintainer: Noel Kuntze <noel.kuntze at thermi dot consulting>
+# Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
+# Contributor: Stephan Eisvogel <eisvogel at embinet dot de
pkgname=acmetool
pkgver=0.0.67
-pkgrel=1
+pkgrel=2
pkgdesc="An easy-to-use command line tool for automatically acquiring certificates from ACME servers (such as Let's Encrypt)"
arch=(i686 x86_64 armv7h)
url="https://github.com/hlandau/acme"
license=('MIT')
-depends=(glibc bash libcap)
+depends=(bash libcap)
makedepends=(go)
+install=acmetool.install
source=(acmetool-$pkgver.tar.gz::https://github.com/hlandau/acme/archive/v$pkgver.tar.gz
LICENSE::https://raw.githubusercontent.com/hlandau/rilts/master/licences/COPYING.MIT
acmetool.service
acmetool.timer
- acmetool.tmpfile
+ acmetool.conf
+ acmetool.install
)
sha256sums=('01f78340006539c62bb86250433d2f819ab529ccd9a0aa74e140ff0fee839073'
'fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc'
- 'de9d31c97000445e3da4dccca404efa9c23203d5fe345befdd9926bcdb6b36e3'
+ 'bf0052ea1a94919455fc364c6e9ff66f9268b7f80c42e9a73249919a6b369d9c'
'82cd724853507a6d96f7a432aa44c457e76f4d6c0f1ad35142287b7c383d5c0b'
- 'ae82f90321f60f441f49227e8cc69c3bb1fc80f196bb6070b4617048adf1ca4d')
+ '91f8999341dd8dcc1170231f977ae8f93fc671cd4d2b87c56b9e44c4ec0a13a2'
+ 'ef50df6362af250c648433477fff6b1bc40bea2dfd7aff34cf9ec4f33a76e9fc')
-build() {
- GOPATH="${srcdir}/fakegopath"
- export GOPATH
- mkdir -p "${GOPATH}/src/github.com/hlandau/acme/"
- cd "${srcdir}/acme-${pkgver}"
- for i in `find . -maxdepth 1 -type d`
- do
- if [ "${i}" = "." ]
- then
- continue
- fi
- cp -rf "${i}" "${GOPATH}/src/github.com/hlandau/acme/"
- done
+prepare() {
+ export GOPATH="${srcdir}/build"
+ mkdir -p "${GOPATH}/src/github.com/hlandau/"
+ mv "${srcdir}/acme-${pkgver}" "${GOPATH}/src/github.com/hlandau/acme"
go get -v github.com/hlandau/acme/cmd/acmetool
+}
+
+build() {
+ export GOPATH="${srcdir}/build"
cd "${GOPATH}/src/github.com/hlandau/acme/cmd/acmetool"
- go build -pkgdir "${pkgdir}"
+ go build -pkgdir "${pkgdir}" \
+ -ldflags "-X github.com/hlandau/acme/responder.StandardWebrootPath=\"/run/acme/acme-challenge\""
}
package() {
- install -Dm0755 "${srcdir}/fakegopath/bin/acmetool" "${pkgdir}/usr/bin/acmetool"
+ # copy binary
+ install -Dm0755 "${srcdir}/build/bin/acmetool" "${pkgdir}/usr/bin/acmetool"
+ # copy systemd units (service and timer)
install -Dm644 -t "${pkgdir}/usr/lib/systemd/system" \
${srcdir}/acmetool.service \
${srcdir}/acmetool.timer
- install -Dm644 -t "${pkgdir}/usr/lib/tmpfiles.d" ${srcdir}/acmetool.tmpfile
+ # copy acmetool.tmpfiles
+ install -Dm644 -t "${pkgdir}/usr/lib/tmpfiles.d/" ${srcdir}/acmetool.conf
- install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${srcdir}/acme-${pkgver}/README.md" "${srcdir}/acme-${pkgver}/_doc/"*
+ # copy README.md and other documentation
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${srcdir}/build/src/github.com/hlandau/acme/README.md" "${srcdir}/build/src/github.com/hlandau/acme/_doc/"*
# copy the license
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/acmetool/LICENSE"
}