updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / quanta-git / PKGBUILD
blobc88abf7b283615f429d0f559544bb8a86970ac14
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: mosra <mosra@centrum.cz>
4 pkgname=quanta-git
5 pkgver=20110604
6 pkgrel=1
7 pkgdesc="An IDE for Web Development based on the KDevelop Platform"
8 arch=('i686' 'x86_64')
9 url="http://quanta.kdewebdev.org/"
10 license=('GPL')
11 depends=('kdevplatform-git')
12 optdepends=('qjson' 'kdevelop-pg-qt-git')
13 makedepends=('cmake' 'automoc4' 'git' 'flex')
14 provides=('quanta')
15 replaces=('quanta')
16 conflicts=('quanta')
17 source=()
18 md5sums=()
20 _gitroot="git://anongit.kde.org/quanta"
21 _gitname="quanta"
23 build() {
24     cd "${srcdir}"
26     msg "Connecting to the GIT server...."
28     if [ -d $_gitname ] ; then
29         cd $_gitname
31         # Change remote url to anongit
32         if [ -z "$(git remote -v | grep anongit)" ] ; then
33             git remote set-url origin ${_gitroot}
34         fi
36         git pull origin
37         msg "The local files are updated."
38     else
39         git clone $_gitroot $_gitname
40     fi
42     msg "GIT checkout done"
43     msg "Starting make..."
45     mkdir -p "${srcdir}/build"
46     cd "${srcdir}/build"
48     cmake ../${_gitname} \
49         -DCMAKE_INSTALL_PREFIX=/usr \
50         -DCMAKE_BUILD_TYPE=RELEASE
52     make
55 package() {
56     cd "${srcdir}/build"
58     make DESTDIR="${pkgdir}" install