Package Details: snapgene-viewer 5.1.2-1

Git Clone URL: https://aur.archlinux.org/snapgene-viewer.git (read-only, click to copy)
Package Base: snapgene-viewer
Description: Software for plasmid mapping, primer design, and restriction site analysis
Upstream URL: http://www.snapgene.com/products/snapgene_viewer/
Licenses: custom
Submitter: anntzer
Maintainer: anntzer
Last Packager: anntzer
Votes: 4
Popularity: 0.000023
First Submitted: 2016-02-28 04:56
Last Updated: 2020-05-15 10:38

Latest Comments

1 2 Next › Last »

tillyboy commented on 2020-05-15 09:20

I'd actually suggest to do so. Just had to reinstall my OS and had to mod the PKGBUILD again because of checksum failure.

anntzer commented on 2020-04-01 22:27

OK, I just updated my version, but I'm also vaguely tempted to just "claim" that this is a "VCS"-like package because the pkgbuild now basically works for all versions (except for moving pkgver to a pkgver() function, and changing the hashsum to SKIP)...

tillyboy commented on 2020-04-01 20:36

Yup that works for me. I actually just saw that I forgot to escape my dots. Assuming that the way they version their products stays the same (e.g. the don't start putting dashes and stuff). However I expect my grep search to be quicker, and also it requires no extra call to tail :P

anntzer commented on 2020-04-01 19:23

Looking at it again, I guess the following would be even simpler:

_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)"

Can you confirm it works for you?

tillyboy commented on 2020-04-01 18:12

@anntzer

I guess curl changed its output format?

Probably, I don't use it often enough to notice.

Also I think the old pkgver grep was more robust, as it would allow version numbers such as x.y.zz? (4.3.11 did exist)

Mine should allow for that as well. Even filenames such as "snapgene_viewer_stable_26.5.5846_linux.rpm" should be fine. The hash is more of a inconvenience imo.

anntzer commented on 2020-03-31 21:01

I guess curl changed its output format? Also I think the old pkgver grep was more robust, as it would allow version numbers such as x.y.zz? (4.3.11 did exist)

tillyboy commented on 2020-03-31 15:00

It's just changing a few commands for setting the variables:

_filename=$(curl --silent --head --location "$_dlurl" | grep -Po 'Location: https://.*\K(snapgene_viewer_.*_linux.rpm)' | tail -n1)
pkgver="$(grep -Po '\d+.\d+.\d+' <<< "$_filename")"                              
source=("$_filename::$_dlurl")                                                   
sha512sums=('bf1f3e2c144e42e40484bc9d7c14440421634a34b39dbcd7f6a4cbdc084decae8f9bdb6ec807f6cffa46842088065bbcb224d13a8baaad3fbd963d2b6e9cbecd')

I guess shasum will change on each patch though, so that might need to be readjusted from time to time.

anntzer commented on 2020-03-31 14:30

feel free to post a patch here or link a gist.

tillyboy commented on 2020-03-31 14:18

@jfaccioni @mollitz @anntzer I managed to make a running PKGBUILD, is there some way to make a PR so that it can be incorporated into AUR?

jfaccioni commented on 2019-11-05 13:39

Build still fails due to incorrect sha512sum. Manually fixing the sha512sum by editing PKGBUILD results in a successful build, but the program does not launch.