summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD20
2 files changed, 15 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9e7d2e0ffd2..e9ea5d1b27d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = protonmail-bridge
pkgdesc = Integrate ProtonMail paid account with any program that supports IMAP and SMTP
- pkgver = 2.2.2
+ pkgver = 2.3.0
pkgrel = 1
url = https://protonmail.com/bridge
arch = x86_64
@@ -17,9 +17,9 @@ pkgbase = protonmail-bridge
conflicts = protonmail-bridge-bin
options = !emptydirs
options = !strip
- source = git+https://github.com/ProtonMail/proton-bridge.git#tag=v-2.2.2
+ source = protonmail-bridge_2.3.0.tar.gz::https://github.com/ProtonMail/proton-bridge/archive/refs/tags/v2.3.0.tar.gz
source = protonmail-bridge.desktop
- sha256sums = SKIP
+ sha256sums = 174abd106ca9b261dec0cb853c796a8aefd7cdb82006089482445558430b0d61
sha256sums = 226bc140ec5c34cfdff42b33058d045446a4006518d2660db932c7f51632b48a
pkgname = protonmail-bridge
diff --git a/PKGBUILD b/PKGBUILD
index e9bc80e3b3e..96d6ca085c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: aimileus <me at aimileus dot nl>
pkgname=protonmail-bridge
-pkgver=2.2.2
+pkgver=2.3.0
pkgrel=1
pkgdesc="Integrate ProtonMail paid account with any program that supports IMAP and SMTP"
arch=('x86_64')
@@ -19,34 +19,38 @@ optdepends=(
conflicts=('protonmail-bridge-bin')
options=('!emptydirs' '!strip')
-# Source to compile to a specific tag
-source=("git+https://github.com/ProtonMail/proton-bridge.git#tag=v${pkgver}"
+# Source to compile from tar.gz file
+source=("protonmail-bridge_${pkgver}.tar.gz::https://github.com/ProtonMail/proton-bridge/archive/refs/tags/v${pkgver}.tar.gz"
"protonmail-bridge.desktop")
+# Source to compile to a specific tag
+#source=("git+https://github.com/ProtonMail/proton-bridge.git#tag=v${pkgver}"
+# "protonmail-bridge.desktop")
+
# Source to compile to a specific commit
#source=("git+https://github.com/ProtonMail/proton-bridge.git#commit=a219ecf3cbe4fa31517136131fc585e93b86c3dd"
# "protonmail-bridge.desktop")
-sha256sums=('SKIP'
+sha256sums=('174abd106ca9b261dec0cb853c796a8aefd7cdb82006089482445558430b0d61'
'226bc140ec5c34cfdff42b33058d045446a4006518d2660db932c7f51632b48a')
prepare() {
- cd ${srcdir}/proton-bridge/
- sed -i s/1.8.0+git/1.8.1+git/ Makefile
+ cd proton-bridge-${pkgver}/
+# sed -i s/1.8.0+git/1.8.1+git/ Makefile
export PATH=$PATH:$(go env GOPATH)/bin/
make clean
}
build(){
export PATH=$PATH:$(go env GOPATH)/bin/
- cd ${srcdir}/proton-bridge/
+ cd ${srcdir}/proton-bridge-${pkgver}/
make build
}
package() {
mkdir -p "${pkgdir}"/opt
mkdir -p "${pkgdir}"/usr/bin
- cp -r "${srcdir}"/proton-bridge/cmd/Desktop-Bridge/deploy/linux/ "${pkgdir}"/opt/protonmail-bridge
+ cp -r proton-bridge-${pkgver}/cmd/Desktop-Bridge/deploy/linux/ "${pkgdir}"/opt/protonmail-bridge
install -D -m644 "${pkgdir}"/opt/protonmail-bridge/LICENSE -t "${pkgdir}"/usr/share/licenses/"${pkgname}"/
install -D -m644 "${pkgdir}"/opt/protonmail-bridge/logo.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/"${pkgname}".svg
install -D -m644 "${srcdir}"/protonmail-bridge.desktop -t "${pkgdir}"/usr/share/applications/