summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 029351d6aff5bdc7e276860094c0532ea8de5f2a (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
33
34
35
# Maintainer: Sebastian Gsänger <sebastian_gsaenger@web.de>
pkgname=vipster
pkgver=1.16b
pkgrel=2
pkgdesc="Molecule editor based on Qt, specialized on periodic structures"
arch=('x86_64')
url="https://sgsaenger.github.io/vipster"
license=('GPL3')
groups=()
depends=('qt5-base' 'python')
makedepends=('cmake' 'git')
source=("https://github.com/sgsaenger/$pkgname/archive/v$pkgver.tar.gz")
md5sums=('92919e0833ae121ff7058af1aaa61174')

build() {
    cd vipster-$pkgver
    git clone https://github.com/pybind/pybind11 --branch v2.2.4 external/pybind11
    mkdir build
    cd build

    cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release -D PYTHON=YES -D DESKTOP=YES -D TESTS=YES ..
    make all
}

check() {
    cd vipster-$pkgver/build

    ./test_lib
}

package() {
    cd vipster-$pkgver/build

    make DESTDIR=$pkgdir install
}