# Based on snapgene-viewer package by Antony Lee # Maintainer: Matthijs Tadema # Co-Maintainer: Lorenzo Gaifas pkgname=snapgene pkgver=6.1.0 _pkgver_major=$(cut -d '.' -f 1 <<<"$pkgver") _pkgver_major_middle=$(cut -d '.' -f 1-2 <<<"$pkgver") pkgrel=1 pkgdesc='Software for plasmid mapping, primer design, and restriction site analysis' arch=('x86_64') url='http://www.snapgene.com/products/snapgene/' license=('custom') # You must download the file yourself using your snapgene account # A valid licence is required to use the full version of snapgene source=("https://cdn.snapgene.com/downloads/SnapGene/"$_pkgver_major".x/"$_pkgver_major_middle"/"$pkgver"/snapgene_"$pkgver"_linux.rpm") sha512sums=('7163910825bc701b4c4a5671bf2279b860531f2560a39b7f4d19a83b176790d533c599b8770d886800944d510cafa73896a0ed1d6691559421e9ab0a61595f3c') conflicts=() options=() package() { cd "$pkgdir" cp -r "$srcdir/opt" "$pkgdir" cp -r "$srcdir/usr" "$pkgdir" mkdir "$pkgdir/usr/bin" cat <<'EOF' >"$pkgdir/usr/bin/snapgene" #!/bin/sh # Snapgene is not localized and genbank exports are invalid in other # locales, so we just set LANG=C. LANG=C /opt/gslbiotech/snapgene/snapgene.sh EOF chmod a+x "$pkgdir/usr/bin/snapgene" mkdir -p "$pkgdir/usr/share/licenses/$pkgname" ln -s "/opt/gslbiotech/snapgene/resources/licenseAgreement.html" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.html" }