upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / libmsym / repos / extra-x86_64 / PKGBUILD
blob0876f1fadb2b2742abe00abcea6be7d4eb4dc274
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=libmsym
4 pkgver=0.2.3
5 pkgrel=8
6 pkgdesc="Molecular point group symmetry lib"
7 arch=(x86_64)
8 url="http://www.openchemistry.org/"
9 license=(MIT)
10 depends=(glibc)
11 makedepends=(cmake python)
12 optdepends=('python: Python bindings')
13 source=($pkgname-$pkgver.tar.gz::"https://github.com/mcodev31/libmsym/archive/v$pkgver-paper.tar.gz")
14 sha256sums=('3741ebe163cf40696570d6b62e4834ca587d43dcac9de713994cc5e2960fb8fd')
16 prepare() {
17   mkdir -p build
20 build() {
21   cd build
22   cmake ../$pkgname-$pkgver-paper \
23     -DCMAKE_INSTALL_PREFIX=/usr \
24     -DBUILD_SHARED_LIBS=ON \
25     -DMSYM_BUILD_PYTHON=ON \
26     -DMSYM_PYTHON_INSTALL_OPTS=--root="$pkgdir"
27   make
30 package() {
31   cd build
32   make DESTDIR="$pkgdir" install
34   install -Dm644 "$srcdir"/$pkgname-$pkgver-paper/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname