blob: 0b2d1bfca0fb9ce4f004512de245658cb05a2648 (
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
|
# Maintainer: bartus <arch-user-repoᘓbartus.33mail.com>
pkgname=opencollada
pkgver=1.6.68
pkgrel=3
epoch=1
pkgdesc="Stream based reader and writer library for COLLADA files"
arch=(x86_64)
url="https://github.com/KhronosGroup/OpenCOLLADA"
license=('GPL')
depends=('libxml2' 'pcre')
makedepends=('git' 'cmake')
source=('opencollada.conf'
'pcre.patch'
'gcc.patch'
"git+https://github.com/KhronosGroup/OpenCOLLADA.git#tag=v${pkgver}")
sha256sums=('2fc9656a2b881ca4528416daa91fc525adaa97d73e96a18b41aa7856270eba1f'
'f37a7cbadcaa06b70133f76c509c61bdcf13715bc13aed11b5db83ef594813b3'
'ea2b2de957055e9d9fc2cad31f7f82810816e2f935db8f72fe5538642574926a'
'b201b99935d817b18bd1588cce824d6e891102d1d8dbe272cbd9a4ce91ec4f8e')
prepare() {
cd OpenCOLLADA
patch -Np1 -i "$srcdir"/pcre.patch
patch -Np1 -i "$srcdir"/gcc.patch
}
build() {
cd OpenCOLLADA
[[ -d build ]] && rm -r build
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_SHARED=ON \
-DUSE_STATIC=OFF
make
}
package() {
cd OpenCOLLADA/build
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/opencollada.conf "$pkgdir"/etc/ld.so.conf.d/opencollada.conf
}
# vim:set ts=2 sw=2 et:
|