diff options
author | Daniel Peukert | 2019-05-12 16:12:04 +0200 |
---|---|---|
committer | Daniel Peukert | 2019-05-12 16:12:04 +0200 |
commit | 7ab78256af28fe325cc271407fcb8640002d88dc (patch) | |
tree | 978b72922eee7f058495fcbbe1028c6992f64353 | |
download | aur-7ab78256af28fe325cc271407fcb8640002d88dc.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .editorconfig | 8 | ||||
-rw-r--r-- | .gitignore | 14 | ||||
-rw-r--r-- | PKGBUILD | 24 |
4 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9702f15de884 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,10 @@ +pkgbase = certspotter + pkgdesc = Certificate Transparency Log Monitor + pkgver = 0.9 + pkgrel = 1 + url = https://github.com/SSLMate/certspotter + arch = x86_64 + license = MPL2 + makedepends = go + +pkgname = certspotter diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..a467ee9a97a6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = tab +tab_width = 4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b669a9b7602c --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..65008ecfef84 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=certspotter +pkgver=0.9 +pkgrel=1 +pkgdesc='Certificate Transparency Log Monitor' +arch=('x86_64') +url="https://github.com/SSLMate/$pkgname" +_gourl='software.sslmate.com/src/certspotter/cmd/certspotter' +license=('MPL2') +makedepends=('go') + + +prepare() { + GOPATH="$srcdir" go get -d -fix -v "$_gourl" +} + +build() { + export GOFLAGS="-gcflags=all=-trimpath=$PWD -asmflags=all=-trimpath=$PWD -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow" + GOPATH="$srcdir" go install "$_gourl" +} + +package() { + install -dm755 "$pkgdir/usr/bin" + install -m755 "$srcdir/bin/$pkgname" "$pkgdir/usr/bin/$pkgname" +} |