updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qzion / PKGBUILD
blobf49cf7c49a799e656aa59aa6cd7095aa27ca22d9
1 # Package Name
2 # Contributor: Dylon Edwards <deltaecho@archlinux.us>
4 pkgname=qzion
5 pkgver=20091007
6 pkgrel=1
8 pkgdesc="A canvas abstraction used by and made for QEdje."
9 url="http://code.openbossa.org/projects/qzion"
10 license=('GPL')
12 arch=('i686' 'x86_64')
14 source=()
15 md5sums=()
17 depends=( 'qt' 'eet-svn' 'python' 'pyqt' 'sip' )
18 makedepends=( 'git' 'gcc' 'cmake' 'make' )
20 provides=( "qzion=${pkgver}" )
22 _gitroot="git://code.openbossa.org/qzion/mainline.git"
23 _gitname="qzion"
25 build() {
27         # Get the source
28         if [ -d ${_gitname}/.git ]; then
29                 ( cd ${_gitname} && git pull )
30         else
31                 git clone ${_gitroot} ${_gitname}
32         fi
34         # Create the build directory
35         mkdir -p ${_gitname}-build
36         cd ${_gitname}-build
38         # Configure the application
39         if [ ! -f CMakeCache.txt ]; then
40                 cmake -DCMAKE_INSTALL_PREFIX=/usr \
41                       -DCMAKE_BUILD_TYPE=RelWithDebInfo \
42                       ${srcdir}/${_gitname} || return 1
43         else
44                 cmake . || return 1
45         fi
47         # Make and install the package
48         make DESTDIR=${pkgdir} install || return 1