summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
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 00000000000..fda797f8182
--- /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"
+
+}
+