blob: 88d97eb9f25270565a73d7ec20070974a9cb2538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# 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=5
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 aarch64)
url="https://github.com/hlandau/acme"
license=('MIT')
depends=(bash libcap)
makedepends=(go)
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.conf
)
sha256sums=('SKIP'
'fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc'
'bf0052ea1a94919455fc364c6e9ff66f9268b7f80c42e9a73249919a6b369d9c'
'82cd724853507a6d96f7a432aa44c457e76f4d6c0f1ad35142287b7c383d5c0b'
'91f8999341dd8dcc1170231f977ae8f93fc671cd4d2b87c56b9e44c4ec0a13a2')
prepare() {
export GOPATH="${srcdir}/build"
mkdir -p "${GOPATH}/src/github.com/hlandau/"
mv "${srcdir}/acmetool-${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}" \
-ldflags "-X github.com/hlandau/acme/responder.StandardWebrootPath=\"/run/acme/acme-challenge\""
}
package() {
# 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
# copy acmetool.tmpfiles
install -Dm644 -t "${pkgdir}/usr/lib/tmpfiles.d/" ${srcdir}/acmetool.conf
# 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"
}
|