updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / qedje / PKGBUILD
blobdfc6242ffe6bd44d057be56c2a7349ee65b58160
1 # Package Name
2 # Contributor: Dylon Edwards <deltaecho@archlinux.us>
4 pkgname=qedje
5 pkgver=20091007
6 pkgrel=1
8 pkgdesc="Enlightenment Edje bindings for the Qt toolkit."
9 url="http://code.openbossa.org/projects/qedje"
10 license=('GPL')
12 arch=('i686' 'x86_64')
14 source=()
15 md5sums=()
17 depends=( 'qt' 'eet-svn' "qzion>=${pkgver}" )
18 makedepends=( 'git' 'gcc' 'cmake' 'make')
20 provides=( "qedje=${pkgver}" )
22 _gitroot="git://code.openbossa.org/qedje/mainline.git"
23 _gitname="qedje"
25 build() {
27         # Get the sources
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