summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrobot Viktor2018-11-05 22:46:08 +0300
committerDrobot Viktor2018-11-05 22:46:08 +0300
commit4a8e3dbd0e95a5d01d0ec0ec225738411ed66bec (patch)
treed50f4644ad7f39dd50e39761dc56ac4cac9f4321
downloadaur-4a8e3dbd0e95a5d01d0ec0ec225738411ed66bec.tar.gz
Initial release
-rw-r--r--.SRCINFO20
-rw-r--r--LICENSE34
-rw-r--r--PKGBUILD44
-rw-r--r--plugins.patch40
4 files changed, 138 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..8847ddaedb9e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = vmd-molfile-plugins
+ pkgdesc = Visual Molecular Dynamics plugins package
+ pkgver = 1.9.3
+ pkgrel = 1
+ url = https://www.ks.uiuc.edu/Research/vmd/plugins
+ arch = x86_64
+ license = custom
+ makedepends = make
+ makedepends = gcc
+ depends = tcl
+ depends = netcdf
+ source = local://vmd-1.9.3.src.tar.gz
+ source = plugins.patch
+ source = LICENSE
+ md5sums = 5706f88b9b77cc5fafda6fef3a82d6fa
+ md5sums = b79218662efe472ad2844f3b5b9beff6
+ md5sums = f60d4d3f9c39c0e9e997a6eacacbade1
+
+pkgname = vmd-molfile-plugins
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..48a65301a394
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,34 @@
+University of Illinois Open Source License
+Copyright 2006 Theoretical and Computational Biophysics Group,
+All rights reserved.
+
+Developed by: Theoretical and Computational Biophysics Group
+ University of Illinois at Urbana-Champaign
+ http://www.ks.uiuc.edu/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the Software), to deal with
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to
+do so, subject to the following conditions:
+
+Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimers.
+
+Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimers in the documentation
+and/or other materials provided with the distribution.
+
+Neither the names of Theoretical and Computational Biophysics Group,
+University of Illinois at Urbana-Champaign, nor the names of its contributors
+may be used to endorse or promote products derived from this Software without
+specific prior written permission.
+
+THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS WITH THE SOFTWARE.
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..d26a874d1245
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+pkgname=vmd-molfile-plugins
+pkgver=1.9.3
+pkgrel=1
+pkgdesc="Visual Molecular Dynamics plugins package"
+url="https://www.ks.uiuc.edu/Research/vmd/plugins"
+license=('custom')
+arch=('x86_64')
+depends=('tcl' 'netcdf')
+makedepends=('make' 'gcc')
+md5sums=('5706f88b9b77cc5fafda6fef3a82d6fa'
+ 'b79218662efe472ad2844f3b5b9beff6'
+ 'f60d4d3f9c39c0e9e997a6eacacbade1')
+
+# You should download the source package from the VMD site and put it in the PKGBUILD folder
+source=("local://vmd-${pkgver}.src.tar.gz"
+ "plugins.patch"
+ "LICENSE")
+
+prepare() {
+ cd ${srcdir}/plugins
+
+ patch -Np0 -i "${srcdir}/plugins.patch"
+}
+
+build() {
+ cd ${srcdir}/plugins
+
+ make LINUXAMD64
+}
+
+package() {
+ cd ${srcdir}/plugins
+
+ PLUGINDIR=${srcdir}/molfile make distrib
+
+ install -d ${pkgdir}/usr/lib/${pkgname}
+ install -Dm755 ${srcdir}/molfile/LINUXAMD64/molfile/*.so ${pkgdir}/usr/lib/${pkgname}
+ install -Dm644 ${srcdir}/molfile/LINUXAMD64/molfile/libmolfile_plugin* ${pkgdir}/usr/lib/${pkgname}
+ install -d ${pkgdir}/usr/include/vmd-molfile
+ install -Dm644 ${srcdir}/molfile/include/*.h ${pkgdir}/usr/include/vmd-molfile
+ install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}
+
diff --git a/plugins.patch b/plugins.patch
new file mode 100644
index 000000000000..178d3299d850
--- /dev/null
+++ b/plugins.patch
@@ -0,0 +1,40 @@
+--- Makefile 2016-07-13 22:24:24.000000000 +0300
++++ Makefile 2018-11-05 21:27:03.157083651 +0300
+@@ -22,7 +22,7 @@
+
+ # When building from the independent multiseq tree, we'll use an empty list
+ # since the dependency will be dealt with manually.
+-#MSEQBUILDDIRS =
++MSEQBUILDDIRS =
+
+ # The Intersurf plugin is compiled manually and should only be
+ # listed if the binaries are up-to-date for the target platform(s)
+@@ -146,7 +146,7 @@
+ @echo "Populating distribution directory with compiled plugins"
+ -mkdir -p $(PLUGINDIR)/include
+ for header in $(PLUGINHEADERS); do cp -p $(INCLUDEDIR)/$$header $(PLUGINDIR)/include || exit 1 ; done
+- for dir in molfile_plugin $(BUILDDIRS); do cd $$dir && $(MAKE) distrib && cd .. || exit 1 ; done
++ for dir in molfile_plugin; do cd $$dir && $(MAKE) distrib && cd .. || exit 1 ; done
+
+ include Make-arch
+
+--- Make-arch 2016-10-22 00:34:39.000000000 +0300
++++ Make-arch 2018-11-05 21:02:19.862302589 +0300
+@@ -333,7 +333,7 @@
+ "SHLD = gcc -shared"
+
+ LINUXAMD64:
+- $(MAKE) dynlibs staticlibs bins \
++ $(MAKE) dynlibs staticlibs \
+ "ARCH = LINUXAMD64" \
+ "COPTO = -fPIC -m64 -o " \
+ "LOPTO = -fPIC -m64 -lstdc++ -o " \
+@@ -342,7 +342,7 @@
+ "DEF = -D" \
+ "CCFLAGS = -m64 -O2 -fPIC -Wall" \
+ "CXXFLAGS = -m64 -O2 -fPIC -Wall" \
+- "TCLLDFLAGS = -ltcl8.5 -ldl" \
++ "TCLLDFLAGS = -ltcl8.6 -ldl" \
+ "NETCDFLDFLAGS = -lnetcdf " \
+ "AR = ar" \
+ "NM = nm -p" \