updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / seexpr-git / PKGBUILD
blob692ac1fda277b867de3faeb832d90f02030df489
1 # Maintainer: SpepS <dreamspepser at yahoo do it>
3 _pkg=SeExpr
4 _pkgbase=seexpr
5 pkgname=$_pkgbase-git
6 pkgver=20110901
7 pkgrel=1
8 pkgdesc="SeExpr is a simple expression language that provides artistic control and customization for procedural geometry and image synthesis, simulation control, etc."
9 arch=(i686 x86_64)
10 url="http://www.disneyanimation.com/technology/seexpr.html"
11 license=('GPL' 'custom')
12 depends=('qt')
13 makedepends=('git' 'cmake' 'doxygen')
14 provides=("$_pkg")
15 conflicts=("$_pkg")
17 _gitroot=https://github.com/wdas/$_pkg.git
18 _gitname=$_pkgbase
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
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"
38   #
39   # BUILD HERE
40   #
42   mkdir build && cd build
44   cmake -DCMAKE_INSTALL_PREFIX=/usr ../
45   make
46   make doc
49 package() {
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/"
60   # remove test
61   rm -rf "$pkgdir/usr/test"
63   # license
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: