1 # Maintainer: SpepS <dreamspepser at yahoo do it>
8 pkgdesc="SeExpr is a simple expression language that provides artistic control and customization for procedural geometry and image synthesis, simulation control, etc."
10 url="http://www.disneyanimation.com/technology/seexpr.html"
11 license=('GPL' 'custom')
13 makedepends=('git' 'cmake' 'doxygen')
17 _gitroot=https://github.com/wdas/$_pkg.git
22 msg "Connecting to GIT server...."
24 if [[ -d "$_gitname" ]]; then
25 cd "$_gitname" && git pull origin
26 msg "The local files are updated."
28 git clone "$_gitroot" "$_gitname"
31 msg "GIT checkout done or server timeout"
32 msg "Starting build..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
42 mkdir build && cd build
44 cmake -DCMAKE_INSTALL_PREFIX=/usr ../
50 cd "$srcdir/$_gitname-build/build"
52 # install to proper path
53 sed -e "s|home.*optimize|usr|g" \
54 -e "s|/lib64/|/lib/|g" \
55 -e "s|/demo/|/bin/|g" \
56 -i `find . -name cmake_install.cmake`
58 make install DESTDIR="$pkgdir/"
61 rm -rf "$pkgdir/usr/test"
64 install -d "$pkgdir/usr/share/licenses/$pkgname"
65 head -n32 ../CMakeLists.txt > \
66 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
69 # vim:set ts=2 sw=2 et: