summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthijs Tadema2018-09-19 14:48:43 +0200
committerMatthijs Tadema2018-09-19 14:48:43 +0200
commit8333f684637d57e686f410954b61d3e697c06e85 (patch)
treee34d16fe54d986baa30a03373a0d84b891eb3587
downloadaur-8333f684637d57e686f410954b61d3e697c06e85.tar.gz
Finalized package for aur
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD32
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d19ea5bfcac
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = snapgene
+ pkgdesc = Software for plasmid mapping, primer design, and restriction site analysis
+ pkgver = 4.2.4
+ pkgrel = 1
+ url = http://www.snapgene.com/products/snapgene/
+ arch = x86_64
+ license = custom
+ source = local://snapgene_4.2.4_linux.rpm
+ md5sums = 732349fb461ed1443be0c47934be8063
+
+pkgname = snapgene
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7fd34d4aa17
--- /dev/null
+++ b/PKGBUILD
@@ -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>
+pkgname=snapgene
+pkgver=4.2.4
+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=("local://${pkgname}_${pkgver}_linux.rpm")
+md5sums=('732349fb461ed1443be0c47934be8063')
+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"
+}