updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libmaia-git / PKGBUILD
blob4a5d7fa36436881a1d05412857ee3c4737e6b2c6
1 #!/bin/bash
2 # Maintainer: Sebastian Wiedenroth < wiedi frubar net >
3 # Contributor: Alireza Savand < alireza.savand with love gmail :| >
5 pkgname=libmaia-git
6 pkgver=20111219
7 pkgrel=1
8 pkgdesc="libmaia is a easy-to-use XML-RCP library for Qt4!"
9 arch=(any)
10 url="https://github.com/wiedi/libmaia"
11 license=("custom")
12 makedepends=('git')
13 depends=("qt")
14 provides=("libmaia")
15 conflicts=("libmaia")
17 _gitroot="git://github.com/wiedi/libmaia.git"
18 _gitname=libmaia
20 build() {
21 cd "$srcdir"
22 msg "fun begins with git server... ;)"
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "the local files are updated."
27 else
28 msg "so let's have some fun with cloning the git repo!"
29 git clone $_gitroot $_gitname
30 msg "wasn't fun? cloning done!"
33 msg "so git checkout done or maybe server timeout :|"
34 msg "anyway, hold tight."
35 msg "starting to make, hmmm such a lovely time :|"
37 rm -rf "$srcdir/$_gitname-build"
38 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
41 msg "actually compiling just started :D"
42 qmake
43 make
46 package() {
47 cd "$srcdir/$_gitname-build"
48 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
49 install -Dm775 libmaia.a "${pkgdir}/usr/lib/libmaia.a"