blob: 2e08bdaba15992ad590d12f6e1c4d28a494ce980 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Liganic <liganic-aur@gmx.net>
pkgname=opencollada
pkgver=867
pkgrel=1
pkgdesc="Stream based reader and writer library for COLLADA files"
arch=(i686 x86_64)
url="https://code.google.com/p/opencollada/"
license=('GPL')
depends=('libxml2')
makedepends=('subversion' 'ruby' 'cmake')
options=(!libtool !strip)
_svntrunk=http://opencollada.googlecode.com/svn/trunk/
_svnmod=opencollada
build() {
cd "$srcdir"
msg "Connecting to SVN server...."
if [[ -d "$_svnmod/.svn" ]]; then
(cd "$_svnmod" && svn up -r "$pkgver")
else
svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
fi
msg "SVN checkout done or server timeout"
msg "Starting build..."
_builddir="$srcdir/$_svnmod-build"
rm -rf $_builddir
cp -r "$srcdir/$_svnmod" $_builddir
cd $_builddir
mkdir cmake
cd cmake
cmake ../
cd $_builddir/cmake
make
# cd scripts/
# chmod +x unixbuild.sh
# ./unixbuild.sh $pkgdir/usr/
}
package() {
_builddir="$srcdir/$_svnmod-build"
# sed -i "s/libdir='.*'/libdir=\'\/usr\/lib\'/" $pkgdir/usr/lib/*.la*
# Headers
rm -rf `find $_builddir -type d -name .svn`
mkdir -p $pkgdir/usr/include/opencollada/
cd $_builddir
_include_dirs=$(find . -type d -name include -and -not -path '*Externals*' -print)
for dir in $_include_dirs;do
mkdir -p $pkgdir/usr/include/opencollada/${dir}
cp -r ${dir}/* $pkgdir/usr/include/opencollada/${dir}/..
done
rm -rf $pkgdir/usr/include/opencollada/generated*
cp -r $_builddir/cmake/lib/ $pkgdir/usr/
cp -r $_builddir/cmake/bin/ $pkgdir/usr/
}
# vim:set ts=2 sw=2 et:
|