summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fee8c1ce06e592d727f0f4d159f26872f7520eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Eric Berquist <eric DOT berquist AT gmail>

pkgname=iqmol
pkgver=2.13b
pkgrel=2
pkgdesc="A molecular editor and visualization package with Q-Chem integration"
arch=('x86_64')
url="https://iqmol.org"
license=('GPL3')
depends=('qt5-base' 'glu')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("${pkgname}_${pkgver}.deb::http://iqmol.org/download.php?get=${pkgname}_${pkgver}.deb"
        "${pkgname}.png"
        "${pkgname}.desktop")
sha256sums=('4a1e3649019cbc871730ffd37a4df654d213b330db69b56a48f585e779a04da3'
            '193ae2363115dcb66f3c92580579e1d2fd33dd6976ce2a8eb00beaffd9f8e9c5'
            '9a00b3c99fc8c6681c04b95429740ea00d532dc99c5b12e4e09984808c6f91a1')

package() {
  bsdtar -xf data.tar.xz -C "${pkgdir}/"
  # Fix ownership and permissions
  find "${pkgdir}/" -exec chown root:root '{}' +
  find "${pkgdir}/" -type d -exec chmod 755 '{}' +
  # Icon and desktop files
  install -Dm644 "${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}