path: root/PKGBUILD
diff options
authorMatthijs Tadema2018-09-19 14:48:43 +0200
committerMatthijs Tadema2018-09-19 14:48:43 +0200
commit8333f684637d57e686f410954b61d3e697c06e85 (patch)
treee34d16fe54d986baa30a03373a0d84b891eb3587 /PKGBUILD
Finalized package for aur
Diffstat (limited to 'PKGBUILD')
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7fd34d4aa17
--- /dev/null
@@ -0,0 +1,32 @@
+# Based on snapgene-viewer package by Antony Lee <anntzer dot lee at gmail dot com>
+# Maintainer: Matthijs Tadema <M dot J dot Tadema at gmail dot com>
+pkgdesc='Software for plasmid mapping, primer design, and restriction site analysis'
+# You must download the file yourself using your snapgene account
+# A valid licence is required to use the full version of snapgene
+package() {
+ cd "$pkgdir"
+ cp -r "$srcdir/opt" "$pkgdir"
+ cp -r "$srcdir/usr" "$pkgdir"
+ mkdir "$pkgdir/usr/bin"
+ cat <<'EOF' >"$pkgdir/usr/bin/snapgene"
+# Snapgene is not localized and genbank exports are invalid in other
+# locales, so we just set LANG=C.
+LANG=C /opt/gslbiotech/snapgene/
+ 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"