archrelease: copy trunk to community-any
[ArchLinux/community.git] / forge / trunk / PKGBUILD
blobb6508db0b8ef6bb2c048bd28e3d511c95450b4ac
1 # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
2 pkgname=forge
3 pkgdesc="High Performance Visualizations"
4 url='https://github.com/arrayfire/forge'
5 pkgver=1.0.8
6 arch=('x86_64')
7 pkgrel=1
8 epoch=2
9 license=('BSD')
10 depends=('glfw' 'freetype2' 'fontconfig' 'freeimage' 'glbinding')
11 makedepends=('cmake' 'graphviz' 'git' 'python' 'glm' 'boost' 'ninja')
12 source=($pkgname-$pkgver.tar.gz::https://github.com/arrayfire/forge/archive/v${pkgver}.tar.gz)
13 sha512sums=('08e5eb89d80f7fa3310f0eb37481492b5c1dfff00b33c308169862d8b25cf93ad1d9c0db78667c0207a7f6f8ca4046c196bd3a987af839ea1864b49c738ee8e3')
14 options=('!buildflags')
16 build() {
17   cd forge-${pkgver}
19   cmake . \
20       -GNinja \
21       -Bbuild \
22       -DCMAKE_INSTALL_PREFIX=/usr \
23       -DFG_BUILD_EXAMPLES=ON \
24       -DFG_BUILD_DOCS=OFF
26   ninja -C build
29 package() {
30   cd forge-${pkgver}
32   install -Dm644 .github/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
34   DESTDIR="${pkgdir}/" ninja -C build install