diff --git a/mercury/PKGBUILD b/mercury/PKGBUILD new file mode 100644 index 0000000..01b1bf5 --- /dev/null +++ b/mercury/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Evgeniy "arcanis" Alekseev + +pkgname=mercury +pkgver=3.1.1 +pkgrel=1 +pkgdesc="Software for 3D structure visualization, the exploration of crystal packing and the statistical analysis of CSD search data" +arch=('i686' 'x86_64') +url="http://www.ccdc.cam.ac.uk/Solutions/CSDSystem/Pages/Mercury.aspx" +license=('custom') +depends=() +# You MUST download the package from the url and put it in the PKGBUILD folder! +source=(mercurystandalone-3.1-linux-installer.run + csdsystempatch-5.34.2-linux-installer.run + mercury.sh + mercury.desktop) +md5sums=('6a3f4cd1c0745d3dfe4d1fa287f30b27' + '7142f37fe51a5a26dd6ce963fc7d32a9' + 'd98479136f348c5502204d89944178af' + '7aa75fdf4f1a996976285ed769299ad4') + +package() +{ + chmod +x "${srcdir}/mercurystandalone-3.1-linux-installer.run" + "${srcdir}/mercurystandalone-3.1-linux-installer.run" --prefix "${pkgdir}/opt/mercury" --mode unattended + chmod +x "${srcdir}/csdsystempatch-5.34.2-linux-installer.run" + "${srcdir}/csdsystempatch-5.34.2-linux-installer.run" --prefix "${pkgdir}/opt/mercury" --mode unattended + + install -D -m644 "${pkgdir}/opt/mercury/docs/MercuryLicence.txt" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m644 "${srcdir}/mercury.sh" "${pkgdir}/etc/profile.d/mercury.sh" + install -D -m644 "${srcdir}/mercury.desktop" "${pkgdir}/usr/share/applications/mercury.desktop" + install -D -m644 "${pkgdir}/opt/mercury/icons/mercury_32x32.png" \ + "${pkgdir}/usr/share/icons/hicolor/32x32/apps/mercury.png" +} diff --git a/mercury/mercury.desktop b/mercury/mercury.desktop new file mode 100755 index 0000000..b77869d --- /dev/null +++ b/mercury/mercury.desktop @@ -0,0 +1,10 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Name=Mercury +Comment=Software for structure visualization and the exploration of crystal packing +Exec=mercury +Icon=mercury +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Science;Chemistry;Physics;Education; diff --git a/mercury/mercury.sh b/mercury/mercury.sh new file mode 100755 index 0000000..49d9e3d --- /dev/null +++ b/mercury/mercury.sh @@ -0,0 +1 @@ +export PATH=$PATH:/opt/mercury/bin