summaryrefslogtreecommitdiff
path: root/libre/opencollada-parabola/PKGBUILD
blob: 18b74597fc3b794c1e53fa8bfd79b920ab1850fc (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
50
51
# Maintainer: Márcio Silva <coadde@parabola.nu>

pkgname=opencollada
pkgver=20140214
pkgrel=1
pkgdesc="Stream based reader and writer library for COLLADA files (built for the blender-libre package)"
arch=(
  i686
  x86_64
  mips64el
)
url=https://github.com/KhronosGroup/OpenCOLLADA
license=GPL
depends=(
  libxml2
  pcre
)
makedepends=(
  git
  cmake
)
source=git://github.com/KhronosGroup/OpenCOLLADA.git
sha512sums=SKIP

prepare() {
  cd $srcdir/OpenCOLLADA

  # adapt source to last blender release
  git reset --hard 8dc9e4e5b73caa1fcfe19508f381a087e036d886 # Fri Feb 14 14:32:18 2014 -0800

  [[ -d build ]] && rm -r build
  mkdir build
}

build() {
  cd $srcdir/OpenCOLLADA/build

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DUSE_STATIC=OFF -DUSE_SHARED=ON
  make
}

package() {
  cd $srcdir/OpenCOLLADA/build

  make DESTDIR=$pkgdir install

  install -d  $pkgdir/etc/ld.so.conf.d
  echo /usr/lib/$pkgname > $pkgdir/etc/ld.so.conf.d/$pkgname.conf
}

# vim:set ts=2 sw=2 et: