summaryrefslogtreecommitdiff
path: root/avogadroapp/PKGBUILD
blob: 13a0414bca60eb24a1ab6ed55eb5f763caea1ca4 (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
29
30
31
32
# Contributor: James Barnett < james at wbarnett dot us >
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname=avogadroapp
pkgver=1.91.0
pkgrel=1
pkgdesc="An advanced molecular editor designed for cross-platform use in computational chemistry, molecular modeling, bioinformatics, materials science, and related areas."
arch=('i686' 'pentium4' 'x86_64')
url="http://www.openchemistry.org/projects/avogadro2/"
license=('GPL2')
depends=('avogadrolibs' 'hdf5')
optdepends=('openbabel: Open Babel plugin actions')
makedepends=('cmake' 'eigen')
source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenChemistry/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('f603a3aa81cb2b6347b4d8e3ac12c0ee54f7eafab9dd9fd106a34cf799340f3e56ea12e7731c9718e13dbb4547a67a882982b3109faf7bb3f3104af49351e204')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake "${srcdir}/${pkgname}-${pkgver}" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}