Browse Source

add protonmail bridge tools

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 3 years ago
parent
commit
ceab174475
No known key found for this signature in database GPG Key ID: 7EACB44BA7B30DB9
  1. 1
      hydroxide-git/.gitignore
  2. 29
      hydroxide-git/PKGBUILD
  3. 42
      protonmail-bridge/PKGBUILD

1
hydroxide-git/.gitignore

@ -0,0 +1 @@
/hydroxide

29
hydroxide-git/PKGBUILD

@ -0,0 +1,29 @@
# Maintainer: Cookie Engineer <@cookiengineer>
pkgname=hydroxide-git
pkgver=r133.b3f1e59
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')
source=('git+https://github.com/emersion/hydroxide')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/hydroxide"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/hydroxide";
go build "./cmd/hydroxide";
}
package() {
mkdir -p "$pkgdir/usr/bin"
install -p -m755 "$srcdir/hydroxide/hydroxide" "$pkgdir/usr/bin"
install -Dm644 "$srcdir/hydroxide/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

42
protonmail-bridge/PKGBUILD

@ -0,0 +1,42 @@
# Maintainer: aimileus <me at aimileus dot nl>
pkgname=protonmail-bridge
_pkgver=1.1.0
_pkgrel=1
pkgver="${_pkgver}.${_pkgrel}"
pkgrel=1
pkgdesc="Application to use IMAP/SMTP with your paid ProtonMail account"
arch=('x86_64')
url="https://protonmail.com/bridge/"
license=('custom' 'MIT')
depends=(
'libsecret'
'gnome-keyring'
'qt5-svg'
'qt5-declarative'
'qt5-multimedia'
'ttf-dejavu'
)
options=('!strip')
source=("https://protonmail.com/download/protonmail-bridge_${_pkgver}-${_pkgrel}_amd64.deb")
sha256sums=('6bfec875e593d1df535df56e045cb795b672491d40301b5f1bcde68980f84950')
prepare() {
tar xvJf data.tar.xz
mv usr/share/applications/Desktop-Bridge.desktop \
usr/share/applications/protonmail-bridge.desktop
sed -i "s|Icon=/usr/share/icons/protonmail/Desktop-Bridge.svg|Icon=protonmail-bridge|" \
usr/share/applications/protonmail-bridge.desktop
# Don't pollute /usr/share/icons
mkdir -p usr/share/icons/hicolor/scalable/apps
mv usr/share/icons/protonmail/Desktop-Bridge.svg \
usr/share/icons/hicolor/scalable/apps/protonmail-bridge.svg
rmdir usr/share/icons/protonmail
}
package() {
cp -r usr/ "$pkgdir"
install -Dm644 "$pkgdir"/usr/lib/protonmail/bridge/{eula.txt,LICENSE} \
-t "$pkgdir/usr/share/licenses/$pkgname"
}
Loading…
Cancel
Save