summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAli Molaei2020-08-14 12:57:03 +0430
committerAli Molaei2020-08-14 12:57:03 +0430
commita6de72e329b3e17f8b88b7b49942cbdc263e786c (patch)
tree8aabdcbdd0630ad63271a567cb0917e7c0bcacc5
parent4015a422286893e764d4c0a923c5d777a08f369e (diff)
downloadaur-a6de72e329b3e17f8b88b7b49942cbdc263e786c.tar.gz
Use git for this version to fix wrong version problem
-rw-r--r--.SRCINFO7
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD15
3 files changed, 13 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e40ee1c654e..200ed7e7c83 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = protonmail-bridge
pkgdesc = Integrate ProtonMail paid account with any program that supports IMAP and SMTP
pkgver = 1.3.3
- pkgrel = 1
+ pkgrel = 2
url = https://www.protonmail.com/bridge
arch = x86_64
license = GPL3
makedepends = go
makedepends = gcc
+ makedepends = git
depends = hicolor-icon-theme
depends = libsecret
depends = qt5-multimedia
@@ -16,9 +17,9 @@ pkgbase = protonmail-bridge
conflicts = protonmail-bridge-bin
options = !emptydirs
options = !strip
- source = https://github.com/ProtonMail/proton-bridge/archive/v1.3.3.tar.gz
+ source = git://github.com/ProtonMail/proton-bridge.git
source = protonmail-bridge.desktop
- sha256sums = 613907baa5d5c93cebb2581adeb7259eab750cebe04a9db6873b592138686209
+ sha256sums = SKIP
sha256sums = 226bc140ec5c34cfdff42b33058d045446a4006518d2660db932c7f51632b48a
pkgname = protonmail-bridge
diff --git a/.gitignore b/.gitignore
index 9e2fa298c33..7df8f1f7343 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+proton-bridge
pkg/
src/
*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index a28bb24eb11..0c358f93ca6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,12 @@
pkgname=protonmail-bridge
pkgver=1.3.3
-pkgrel=1
+pkgrel=2
pkgdesc="Integrate ProtonMail paid account with any program that supports IMAP and SMTP"
arch=('x86_64')
url="https://www.protonmail.com/bridge"
license=('GPL3')
-makedepends=('go' 'gcc')
+makedepends=('go' 'gcc' 'git')
depends=('hicolor-icon-theme' 'libsecret' 'qt5-multimedia' 'ttf-dejavu')
optdepends=(
'gnome-keyring: supported password manager (password manager is required)'
@@ -17,14 +17,15 @@ optdepends=(
)
conflicts=('protonmail-bridge-bin')
options=('!emptydirs' '!strip')
-source=("https://github.com/ProtonMail/proton-bridge/archive/v${pkgver}.tar.gz"
+source=("git://github.com/ProtonMail/proton-bridge.git"
"protonmail-bridge.desktop")
-sha256sums=('613907baa5d5c93cebb2581adeb7259eab750cebe04a9db6873b592138686209'
+sha256sums=('SKIP'
'226bc140ec5c34cfdff42b33058d045446a4006518d2660db932c7f51632b48a')
prepare() {
- cd ${srcdir}/proton-bridge-${pkgver}/
+ cd ${srcdir}/proton-bridge/
export PATH=$PATH:$(go env GOPATH)/bin/
+ git checkout "v${pkgver}"
make clean
make build
}
@@ -32,9 +33,9 @@ prepare() {
package() {
mkdir -p "${pkgdir}"/opt
mkdir -p "${pkgdir}"/usr/bin
- cp -r "${srcdir}"/proton-bridge-${pkgver}/cmd/Desktop-Bridge/deploy/linux/ "${pkgdir}"/opt/protonmail-bridge
+ cp -r "${srcdir}"/proton-bridge/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/
- ln -s "/opt/protonmail-bridge/proton-bridge-${pkgver}" "$pkgdir/usr/bin/protonmail-bridge"
+ ln -s "/opt/protonmail-bridge/proton-bridge" "$pkgdir/usr/bin/protonmail-bridge"
}