summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD24
2 files changed, 15 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 74acc3e76d7..cca07c2888a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,11 @@
pkgbase = snapgene-viewer
pkgdesc = Software for plasmid mapping, primer design, and restriction site analysis
- pkgver = 5.3.2
+ pkgver = 6.0.2
pkgrel = 1
- url = http://www.snapgene.com/products/snapgene_viewer/
+ url = https://www.snapgene.com/snapgene-viewer
arch = x86_64
license = custom
- source = https://cdn.snapgene.com/downloads/SnapGeneViewer/5.x/5.3/5.3.2/snapgene_viewer_5.3.2_linux.rpm
+ source = https://cdn.snapgene.com/downloads/SnapGeneViewer/6.x/6.0/6.0.2/snapgene_viewer_6.0.2_linux.rpm
sha512sums = SKIP
pkgname = snapgene-viewer
diff --git a/PKGBUILD b/PKGBUILD
index f22cdf2b011..6d836f0c1ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,33 @@
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Antony Lee <anntzer dot lee at gmail dot com>
pkgname=snapgene-viewer
-pkgver=5.3.2
+pkgver=6.0.2
pkgrel=1
pkgdesc='Software for plasmid mapping, primer design, and restriction site analysis'
arch=('x86_64')
-url='http://www.snapgene.com/products/snapgene_viewer/'
+url="https://www.snapgene.com/${pkgname}"
license=('custom')
_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 )")
+source=("$(curl --silent --head --location "$_dlurl" | grep -Po 'Location: \K.*rpm' | tail -n1)")
sha512sums=('SKIP')
pkgver() {
- grep -Po '\d(\d|\.)+\d' <<< "$source" | tail -n1
+ grep -Po '\d(\d|\.)+\d' <<<"$source" | tail -n1
}
package() {
- cd "$pkgdir"
- cp -r "$srcdir/opt" "$pkgdir"
- cp -r "$srcdir/usr" "$pkgdir"
- mkdir "$pkgdir/usr/bin"
- cat <<'EOF' >"$pkgdir/usr/bin/snapgene-viewer"
+ cd "$pkgdir"
+ cp -r "$srcdir/opt" "$pkgdir"
+ cp -r "$srcdir/usr" "$pkgdir"
+ mkdir "$pkgdir/usr/bin"
+ cat <<'EOF' >"$pkgdir/usr/bin/snapgene-viewer"
#!/bin/sh
# Snapgene Viewer is not localized and genbank exports are invalid in other
# locales, so we just set LANG=C.
LANG=C /opt/gslbiotech/snapgene-viewer/snapgene-viewer.sh
EOF
- chmod a+x "$pkgdir/usr/bin/snapgene-viewer"
+ chmod a+x "$pkgdir/usr/bin/snapgene-viewer"
- mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
- ln -s "/opt/gslbiotech/snapgene-viewer/resources/licenseAgreement.html" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.html"
+ mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s "/opt/gslbiotech/snapgene-viewer/resources/licenseAgreement.html" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.html"
}