# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=avogadro-fragments
pkgver=1.100.0
pkgrel=1
pkgdesc='Molecular fragments and inorganic ligands for rapidly building structures'
arch=(any)
url='https://openchemistry.org/'
license=(BSD-3-Clause)
makedepends=(git)
source=(git+https://github.com/OpenChemistry/fragments#tag=$pkgver)
sha256sums=('b61dfd690623c3f90e1efec4ef148dbba637259f7b73aa35f9165dcf90043beb')
optdepends=('python-openbabel: for scripts')

package() {
  mkdir -p "$pkgdir"/usr/share/avogadro2
  cp -ar fragments "$pkgdir"/usr/share/avogadro2/fragments
  rm -r "$pkgdir"/usr/share/avogadro2/fragments/.git
  install -Dm644 fragments/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
