summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Berquist2019-12-17 09:11:07 -0500
committerEric Berquist2019-12-17 09:11:07 -0500
commit6944bf7441c40bcc316e68d79aa68ab4e0f91105 (patch)
treec1f72a37fdd797202acc89cb427717a376314715
parent760593779fbb76e72a9a6463e6e74c58b2bb3a5a (diff)
downloadaur-6944bf7441c40bcc316e68d79aa68ab4e0f91105.tar.gz
Initial version of install script and icon
-rw-r--r--.SRCINFO11
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD22
-rw-r--r--vmd.desktop10
-rw-r--r--vmd.install11
-rw-r--r--vmd.pngbin0 -> 8365 bytes
6 files changed, 50 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6fbcb28b1f9..cf1ea0fc5ff 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = vmd
pkgdesc = Visual Molecular Dynamics
pkgver = 1.9.4a38
- pkgrel = 1
+ pkgrel = 2
url = http://www.ks.uiuc.edu/Research/vmd/
+ install = vmd.install
arch = x86_64
license = custom
makedepends = make
@@ -16,8 +17,16 @@ pkgbase = vmd
optdepends = netcdf: MMTK and AMBER 9 trajectories support
optdepends = openbabel: additional file formats support
optdepends = sqlite: dmsplugin
+ provides = vmd
+ conflicts = vmd-src
source = local://vmd-1.9.4a38.bin.LINUXAMD64-CUDA10-OptiX600-RTX-OSPRay170.opengl.tar.gz
+ source = vmd.desktop
+ source = vmd.install
+ source = vmd.png
sha256sums = cc6e6fa4f262c86fc0d2bd7b161f37ac5eb3ae05793731709f8d834ef1e5432c
+ sha256sums = 0a9e9eb60107b64d45923dcedd5ebac1ae655656f032a251bf9628ce8e3d26fa
+ sha256sums = f703f8de14eb277dc72cc837086fbd55f5d772049a44200686c8ae76348f6614
+ sha256sums = d83f568615ad954f582d986975997186fdacfd8f79c30f49d6aaf07ba2eb6aa7
pkgname = vmd
diff --git a/.gitignore b/.gitignore
index cd897ed0910..2c1d27e690f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,4 @@ src/
*.xz
# source files
-vmd*
+vmd*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 7e065b59d48..5184806490e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=vmd
pkgver=1.9.4a38
-pkgrel=1
+pkgrel=2
pkgdesc="Visual Molecular Dynamics"
url="http://www.ks.uiuc.edu/Research/vmd/"
license=('custom')
@@ -14,18 +14,32 @@ makedepends=('make')
optdepends=('netcdf: MMTK and AMBER 9 trajectories support'
'openbabel: additional file formats support'
'sqlite: dmsplugin')
+install=vmd.install
+provides=('vmd')
+conflicts=('vmd-src')
# You MUST download the package from the VMD url and put it in the PKGBUILD folder!
# Current download should be:
# LINUX_64 OpenGL, CUDA, OptiX RTX, OSPRay (Linux (RHEL 6.7+) 64-bit Intel/AMD x86_64 SSE, with CUDA 9.x, OptiX6 RTX, OSPRay)
-source=("local://${pkgname}-${pkgver}.bin.LINUXAMD64-CUDA10-OptiX600-RTX-OSPRay170.opengl.tar.gz")
-sha256sums=('cc6e6fa4f262c86fc0d2bd7b161f37ac5eb3ae05793731709f8d834ef1e5432c')
+source=("local://${pkgname}-${pkgver}.bin.LINUXAMD64-CUDA10-OptiX600-RTX-OSPRay170.opengl.tar.gz"
+ "vmd.desktop"
+ "vmd.install"
+ "vmd.png")
+sha256sums=("cc6e6fa4f262c86fc0d2bd7b161f37ac5eb3ae05793731709f8d834ef1e5432c"
+ "0a9e9eb60107b64d45923dcedd5ebac1ae655656f032a251bf9628ce8e3d26fa"
+ "f703f8de14eb277dc72cc837086fbd55f5d772049a44200686c8ae76348f6614"
+ "d83f568615ad954f582d986975997186fdacfd8f79c30f49d6aaf07ba2eb6aa7")
package() {
- cd $srcdir/${pkgname}-${pkgver}
+ cd ${srcdir}/${pkgname}-${pkgver}
+
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
+
export VMDINSTALLBINDIR="${pkgdir}/usr/bin"
export VMDINSTALLLIBRARYDIR="${pkgdir}/usr/lib/vmd"
./configure
cd src; make install
sed -i 's|set defaultvmddir=.*|set defaultvmddir=/usr/lib/vmd|' "${pkgdir}/usr/bin/vmd"
+
+ install -Dm644 ${srcdir}/vmd.desktop ${pkgdir}/usr/share/applications/vmd.desktop
+ install -Dm644 ${srcdir}/vmd.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps/vmd.png
}
diff --git a/vmd.desktop b/vmd.desktop
new file mode 100644
index 00000000000..3c4753246e8
--- /dev/null
+++ b/vmd.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.9.4a38
+Name=VMD
+Comment=Visual Molecular Dynamics
+Exec=vmd %f
+Icon=vmd
+Terminal=true
+Type=Application
+Categories=Tcl;Science;Chemistry
+StartupNotify=true
diff --git a/vmd.install b/vmd.install
new file mode 100644
index 00000000000..2eaa60550d5
--- /dev/null
+++ b/vmd.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
diff --git a/vmd.png b/vmd.png
new file mode 100644
index 00000000000..33126483ca8
--- /dev/null
+++ b/vmd.png
Binary files differ