summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntony Lee2020-04-01 21:05:16 +0200
committerAntony Lee2020-04-01 21:22:53 +0200
commitc67a2b7388302447cb17147707bf635d6d992ba7 (patch)
tree09dc189f754872d0b12f0b3deadf560608314447
parent5c00b458a2015d5bbfe86b7f03c2521acc7948f6 (diff)
downloadaur-c67a2b7388302447cb17147707bf635d6d992ba7.tar.gz
Update to 5.0.7.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD9
2 files changed, 7 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bb349b5f6635..36fd0aba15fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
pkgbase = snapgene-viewer
pkgdesc = Software for plasmid mapping, primer design, and restriction site analysis
- pkgver = 5.0.4
+ pkgver = 5.0.7
pkgrel = 1
url = http://www.snapgene.com/products/snapgene_viewer/
arch = x86_64
license = custom
- source = snapgene_viewer_5.0.4_linux.rpm::https://www.snapgene.com/local/targets/viewer_download.php?os=linux_rpm&majorRelease=latest&minorRelease=latest
- sha512sums = 91b348cdaf2a7e399664252ceac96daf039f808c6bf297a7ccd8118cd2980c9b9f526442f0f9fa704e00f63ffafd35b74d8c313c8b9913ec1cf1f8ecbca8e635
+ source = https://cdn.snapgene.com/downloads/SnapGeneViewer/5.x/5.0/5.0.7/snapgene_viewer_5.0.7_linux.rpm
+ sha512sums = bf1f3e2c144e42e40484bc9d7c14440421634a34b39dbcd7f6a4cbdc084decae8f9bdb6ec807f6cffa46842088065bbcb224d13a8baaad3fbd963d2b6e9cbecd
pkgname = snapgene-viewer
diff --git a/PKGBUILD b/PKGBUILD
index d90b736c4bf1..33346c296fcc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,11 +5,10 @@ pkgdesc='Software for plasmid mapping, primer design, and restriction site analy
arch=('x86_64')
url='http://www.snapgene.com/products/snapgene_viewer/'
license=('custom')
-_dlurl=("https://www.snapgene.com/local/targets/viewer_download.php?os=linux_rpm&majorRelease=latest&minorRelease=latest")
-_filename=$(curl --silent --head --location "$_dlurl" | grep -Po 'filename=".*"' | cut -d'"' -f2)
-pkgver="$(grep -Po '[0-9]([0-9]|\.)+[0-9]' <<< "$_filename")"
-source=("$_filename::$_dlurl")
-sha512sums=('91b348cdaf2a7e399664252ceac96daf039f808c6bf297a7ccd8118cd2980c9b9f526442f0f9fa704e00f63ffafd35b74d8c313c8b9913ec1cf1f8ecbca8e635')
+_dlurl="https://www.snapgene.com/local/targets/viewer_download.php?os=linux_rpm&majorRelease=latest&minorRelease=latest"
+source=("$(curl --silent --head --location "$_dlurl" | grep -Po 'Location: \K.*rpm' | tail -n1 )")
+pkgver="$(grep -Po '\d(\d|\.)+\d' <<< "$source" | tail -n1)"
+sha512sums=('bf1f3e2c144e42e40484bc9d7c14440421634a34b39dbcd7f6a4cbdc084decae8f9bdb6ec807f6cffa46842088065bbcb224d13a8baaad3fbd963d2b6e9cbecd')
package() {
cd "$pkgdir"