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

pkgname=avogadro-fragments
pkgver=1.99.0
pkgrel=1
pkgdesc='Molecular fragments and inorganic ligands for rapidly building structures'
arch=(any)
url='https://openchemistry.org/'
license=(BSD-3-Clause)
source=(https://github.com/OpenChemistry/fragments/archive/$pkgver/fragments-$pkgver.tar.gz)
sha256sums=('aa802bc071582471baab8e2f5f4befda43bee0fdb2557d1d2d335c142b70640e')
optdepends=('python-openbabel: for scripts')

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