updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / libmizuiro-git / PKGBUILD
blob33caa7005bd0ede4417fefdc1ce74f548736aeaa
1 # Maintainer: Philipp Middendorf <pmidden@gmx.net>
2 pkgname=libmizuiro-git
3 pkgver=20110613
4 pkgrel=1
5 pkgdesc="A generic C++ image library"
6 arch=('i686' 'x86_64')
7 url="http://freundlich.github.com/spacegameengine"
8 license=('boost')
9 groups=()
10 depends=('boost>=1.40.0' 'libfcppt-git')
11 makedepends=('git' 'cmake>=2.6')
12 options=()
13 install=
14 source=()
15 noextract=()
16 md5sums=() #generate with 'makepkg -g'
18 _download_from_git()
20   msg "Downloading $1..."
21   if [ -d $1 ]; then
22     cd $1;
23     if ! git pull origin; then
24         msg "Pulling $1 didn't work"
25         cd ..;
26         false;
27     else
28       msg "Done with $1."
29       cd ..
30     fi;
31   else
32     msg "Doesn't exist yet, cloning..."
33     git clone $2 $1
34     msg "Done with $1"
35   fi;
38 build() {
39   cd "$srcdir"
41   _download_from_git 'mizuiro' 'git://github.com/freundlich/mizuiro.git'
43   msg "Starting make..."
45   cd "$srcdir/mizuiro"
47   rm -rf build;
48   mkdir build;
49   cd build;
50   cmake\
51         -D ENABLE_FCPPT:=ON\
52         -D ENABLE_EXAMPLES:=OFF\
53         -D ENABLE_TEST:=OFF\
54         -D CMAKE_INSTALL_PREFIX:="/usr"\
55         ..;
56   make -j3
59 package() {
60   cd "$srcdir/mizuiro/build"
61   make DESTDIR="$pkgdir" install
62