summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkausban2020-04-21 16:09:59 +0200
committerkausban2020-04-21 16:09:59 +0200
commit31f1ee9b63ccc43a46b138e13cb11f2b97dff08a (patch)
treec99eb128f122dda9164d37211c901d8aaa5cb59a
parentce89fab6517c15fda524021297e0cc5be225478b (diff)
downloadaur-31f1ee9b63ccc43a46b138e13cb11f2b97dff08a.tar.gz
changed build tag method
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e79846875295..4bf679576bd4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = protonmail-bridge-nogui
pkgdesc = Integrate ProtonMail paid account with any program that supports IMAP and SMTP
pkgver = 1.2.6
- pkgrel = 22
+ pkgrel = 3
url = https://www.protonmail.com/bridge
arch = x86_64
license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index 9cfbd3457b57..cca9b339bae5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@
pkgname=protonmail-bridge-nogui
pkgver=1.2.6
-pkgrel=22
+pkgrel=3
pkgdesc="Integrate ProtonMail paid account with any program that supports IMAP and SMTP"
arch=('x86_64')
url="https://www.protonmail.com/bridge"
@@ -30,16 +30,16 @@ sha256sums=('SKIP'
'07cc30765dd43307a995ac4f3aed5dee4d6af7e2bc32a21a1201d888a39603c0')
prepare() {
- cd ${srcdir}/proton-bridge/
- sed -i 's/pmapi_prod/pmapi_prod nogui/' Makefile
+ cd "${srcdir}"/proton-bridge/
+ echo -e 'build-nogui:\n\tgo build ${BUILD_FLAGS_NOGUI} -o ${EXE} cmd/Desktop-Bridge/main.go' >> Makefile
export PATH=$PATH:$(go env GOPATH)/bin/
make clean
- make build
+ make build-nogui
}
package() {
install -Dm644 "${srcdir}"/bridge.service -t "${pkgdir}"/usr/lib/systemd/user/
- cd "${srcdir}"/proton-bridge/cmd/Desktop-Bridge/deploy/linux
+ cd "${srcdir}"/proton-bridge/
install -Dm644 ./LICENSE -t "${pkgdir}"/usr/share/licenses/"${pkgname}"/
install -Dm644 ./Changelog.md -t "${pkgdir}"/usr/share/doc/"${pkgbame}"/
install -Dm755 ./proton-bridge "${pkgdir}"/usr/bin/protonmail-bridge