summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAleksa Ognjanovic2020-04-23 22:26:27 +0200
committerAleksa Ognjanovic2020-04-23 22:26:27 +0200
commit6f234781cb69a051f85879e3856a28dbab75c046 (patch)
treed12073ad74c95acd9254642bd0ce6d6eb31c2894 /PKGBUILD
parent939f155b7f90001a3f0bca700a855a5fcb35f559 (diff)
downloadaur-6f234781cb69a051f85879e3856a28dbab75c046.tar.gz
Added better solution for keys, added tryst and gangelop to contributor list
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 61eb6077e101..5e39839e7347 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,20 @@
# Maintainer: GrbavaCigla <alexa.ognjanovic at gmail dot com>
# Contributor: GrbavaCigla <alexa.ognjanovic at gmail dot com>
-# Contributor: hawerner
+# Contributor: hawerner
+# Contributor: tryst
+# Contributor: gangelop
pkgname=pureref
pkgver=1.10.4
-pkgrel=2
+pkgrel=3
pkgdesc="Reference Image Viewer"
arch=('x86_64')
url="http://www.pureref.com"
license=('unknown')
makedepends=('curl' 'libarchive' 'binutils')
options=(!strip)
-source=("${pkgname}-${pkgver}.deb::https://www.pureref.com/files/build.php?build=LINUX64.deb&downloadKey=$(curl https://www.pureref.com/download.php 0>/dev/null | grep var\ key | cut -d "\"" -f2)")
+
+key=$(curl https://www.pureref.com/download.php 0>/dev/null | sed -n -e 's/^.*var key = "\(.*\)".*/\1/p')
+source=("${pkgname}-${pkgver}.deb::https://www.pureref.com/files/build.php?build=LINUX64.deb&downloadKey=$key")
sha512sums=('0ef67c7e38a8dc2707134802ac413fc1503cb633640f2dbf6164e17a104283d0d98ebb52ef9b7c75342ceb0094b527845ccbd9dcadf5dca7ab06140593763e90')
prepare(){