summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Franke2019-01-04 20:54:45 +0100
committerBjoern Franke2019-01-04 20:54:45 +0100
commitd599987222e46ebe3a18375a05b614fe149d6cae (patch)
tree09c4eaaf752acba0d4164e65c2100ea891f44168
downloadaur-d599987222e46ebe3a18375a05b614fe149d6cae.tar.gz
initial commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD36
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..848f4f4b734
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = smtpdane
+ pkgdesc = SMTP DANE testing tool
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://github.com/PennockTech/smtpdane
+ arch = x86_64
+ license = MIT
+ makedepends = go-pie
+ source = https://github.com/PennockTech/smtpdane/archive/v0.3.0.zip
+ sha256sums = 18804344d472a6aab1a1f307170f461c69183d46d13c235d177a44cbd18ae028
+
+pkgname = smtpdane
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..09e51b2d003
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+pkgname=smtpdane
+pkgver=0.3.0
+pkgrel=1
+pkgdesc='SMTP DANE testing tool'
+arch=('x86_64')
+url="https://github.com/PennockTech/smtpdane"
+license=('MIT')
+makedepends=('go-pie')
+source=("https://github.com/PennockTech/$pkgname/archive/v$pkgver.zip")
+sha256sums=('18804344d472a6aab1a1f307170f461c69183d46d13c235d177a44cbd18ae028')
+
+
+prepare(){
+ mkdir -p gopath/src/go.pennock.tech
+ ln -rTsf $pkgname-$pkgver gopath/src/go.pennock.tech/$pkgname
+ export GOPATH="$srcdir"/gopath
+ go get github.com/miekg/dns
+ go get golang.org/x/crypto/ocsp
+}
+
+
+build() {
+ cd $pkgname-$pkgver
+ export GOPATH="$srcdir"/gopath
+
+ go build \
+ -gcflags "all=-trimpath=$PWD" \
+ -asmflags "all=-trimpath=$PWD" \
+ -ldflags "-extldflags $LDFLAGS" \
+ -o $pkgname .
+}
+
+package() {
+ cd $pkgname-$pkgver
+ install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
+}