summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f82ffd2b3d91ea3cb2f40b9f2588e0bd5a99c179 (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
# Maintainer: Michal Ulianko <michal (dot) ulianko (at) gmail (dot) com>

pkgname=coin-hg
pkgver=r12110.04c2890cc357
pkgrel=1
pkgdesc="A high-level, retained-mode 3D graphics toolkit compatible with Open Inventor 2.1"
arch=('x86_64')
url="https://bitbucket.org/Coin3D/coin"
license=('BSD')
depends=('glu')
makedepends=('mercurial' 'cmake' 'doxygen' 'boost')
provides=("${pkgname%-hg}")
conflicts=("${pkgname%-hg}")
source=('coin::hg+https://bitbucket.org/Coin3D/coin#branch=default'
        'generalmsvcgeneration::hg+https://bitbucket.org/Coin3D/generalmsvcgeneration#branch=default'
        'cpack.d::hg+https://bitbucket.org/Coin3D/cpack.d#branch=default'
        'boost-header-libs-full::hg+https://bitbucket.org/Coin3D/boost-header-libs-full#branch=default')
md5sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP')

pkgver() {
    cd "$srcdir/coin"
    printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

build() {
    mkdir "$srcdir/build"
    cd "$srcdir/build"
    cmake -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX="/usr" \
          -DCMAKE_INSTALL_LIBDIR="/usr/lib" \
          ../coin
    make
}

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