summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCookie Engineer2018-10-06 18:09:15 +0200
committerCookie Engineer2018-10-06 18:09:15 +0200
commit747562cdd74ebc5a15c31954bca956cdfca1e4f9 (patch)
tree0b91cb684c6b795dabd09ef47a66264448ee8612 /PKGBUILD
downloadaur-747562cdd74ebc5a15c31954bca956cdfca1e4f9.tar.gz
Initial PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..fda797f81827
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Cookie Engineer <@cookiengineer>
+
+pkgname=hydroxide-git
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge"
+arch=('x86_64')
+makedepends=('git' 'go')
+url="https://github.com/emersion/hydroxide"
+license=('MIT')
+_gourl="github.com/emersion/hydroxide"
+
+build() {
+ GOPATH="$srcdir" go get -fix -v -x ${_gourl}/cmd/hydroxide
+}
+
+check() {
+ GOPATH="$GOPATH:$srcdir" go test -v -x ${_gourl}/cmd/hydroxide
+}
+
+package() {
+
+ mkdir -p "$pkgdir/usr/bin"
+ install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"
+
+ mkdir -p "$pkgdir/usr/lib/go"
+ cp -Rv --preserve=timestamps "$srcdir/src" "$pkgdir/usr/lib/go"
+
+ install -Dm644 "$srcdir/src/$_gourl/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+}
+