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

pkgname=coin-hg
pkgver=r11683.7e191c8f6a31
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=('libgl')
makedepends=('mercurial' 'cmake' 'doxygen')
provides=("${pkgname%-hg}")
conflicts=("${pkgname%-hg}")
source=('coin::hg+https://bitbucket.org/Coin3D/coin'
        'generalmsvcgeneration::hg+https://bitbucket.org/Coin3D/generalmsvcgeneration'
        'boost-header-libs-full::hg+https://bitbucket.org/Coin3D/boost-header-libs-full')
md5sums=('SKIP'
         'SKIP'
         'SKIP')

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

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

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