path: root/PKGBUILD
diff options
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"