summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNoel Kuntze2017-02-21 23:31:26 +0100
committerNoel Kuntze2017-02-21 23:31:26 +0100
commitf7a4e70a816eeec0481899f483d34c34f17746dc (patch)
treee1cfb127ae31d744879eb29b9c50387eaf2753ed /PKGBUILD
parent1a91c6aaed7979d89509c256e63b3411608d1b94 (diff)
downloadaur-f7a4e70a816eeec0481899f483d34c34f17746dc.tar.gz
Bump to 0.0.59, add glibc to dependencies, add systemd timer, unit and
tmpfile for acmetool, keep go dependencies in srcdir to not clutter the system.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 37 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4c7a32f2dae..77b6eb3c206 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,51 @@
+
# Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
pkgname=acmetool
-pkgver=0.0.56
+pkgver=0.0.59
pkgrel=1
pkgdesc="Acmetool is 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=()
+depends=(glibc)
makedepends=(go)
+source=(acmetool-$pkgver.tar.gz::https://github.com/hlandau/acme/archive/v$pkgver.tar.gz
+ acmetool.service
+ acmetool.timer
+ acmetool.tmpfile
+ )
+
+sha256sums=('c84bf2d7ab20fdc16b9047ebb3bca48c8e1282f92605fa2eba08f7963ef6c3b4'
+ 'de9d31c97000445e3da4dccca404efa9c23203d5fe345befdd9926bcdb6b36e3'
+ '82cd724853507a6d96f7a432aa44c457e76f4d6c0f1ad35142287b7c383d5c0b'
+ 'ae82f90321f60f441f49227e8cc69c3bb1fc80f196bb6070b4617048adf1ca4d')
+
build() {
- GOPATH="$srcdir" go get -v -x github.com/hlandau/acme/cmd/acmetool
+ 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
+ go get -v github.com/hlandau/acme/cmd/acmetool
+ cd "${GOPATH}/src/github.com/hlandau/acme/cmd/acmetool"
+ go build -pkgdir "${pkgdir}"
}
package() {
- install -Dm755 "$srcdir/bin/acmetool" "$pkgdir/usr/bin/acmetool"
-}
+ install -Dm0755 "${srcdir}/fakegopath/bin/acmetool" "${pkgdir}/usr/bin/acmetool"
+ 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
+
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${srcdir}/acme-${pkgver}/README.md" "${srcdir}/acme-${pkgver}/_doc/"*
+} \ No newline at end of file