blob: 6702d79bcf6574559ff07200dd8ea10825f3eb34 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Eric Berquist <eric DOT berquist AT gmail DOT com>
_pkgname=avogadro2
pkgname="${_pkgname}-git"
_gitname=avogadroapp
pkgver=1.95.1.r696.ac24a8a
pkgrel=1
pkgdesc="Avogadro 2: graphical application"
url="http://openchemistry.org/projects/avogadro2"
arch=("x86_64")
license=("Kitware")
depends=("avogadrolibs-git" "desktop-file-utils")
makedepends=("git" "cmake" "eigen")
install=avogadro2.install
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/OpenChemistry/${_gitname}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "%s.r%s.%s" \
"$(git describe --tags --abbrev=0)" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p "${srcdir}"/build
}
build() {
cd "${srcdir}"/build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_TESTING=OFF \
-DUSE_VTK=OFF \
"${srcdir}/${_pkgname}"
make
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
install -D -m 644 "${srcdir}/${_pkgname}"/LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|