updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libkdeedu-git / PKGBUILD
blob36aca6d07c0106032d268e68dafad8e4fd186429
1 # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (at) gmail.com>
2 # Contributor: alexwizard
4 pkgname=libkdeedu-git
5 _realname=libkdeedu
6 pkgver=20110405
7 pkgrel=1
8 pkgdesc="Libraries used by KDE Education applications"
9 arch=('i686' 'x86_64')
10 url="http://edu.kde.org/"
11 license=('GPL')
12 depends=('kdebase-runtime')
13 makedepends=('cmake' 'automoc4' 'git' 'docbook-xsl')
14 provides=(${_realname})
15 conflicts=(${_realname})
16 md5sums=()
18 _gitroot="git://anongit.kde.org/${_realname}"
19 _gitname=${_realname}
21 build() {
22   cd ${srcdir}
24   msg "Connecting to GIT server...."
26   if [ -d ${_gitname} ]; then
27     cd ${_gitname} && git pull origin
28     msg "The local files are updated."
29   else
30     git clone ${_gitroot}
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf ${srcdir}/build
37   git clone ${srcdir}/${_gitname} ${srcdir}/build
38   cd ${srcdir}/build
40   cmake . -DCMAKE_BUILD_TYPE=Release \
41           -DCMAKE_INSTALL_PREFIX=/usr
42   make
45 package() {
46   cd ${srcdir}/build
47   make DESTDIR=${pkgdir} install