updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qtilities-git / PKGBUILD
blob7c37151e59680bd27028f9fb9c224ad14f6a7b80
1 # Maintainer: Casey Link < unnamedrambler gmail DOT com>
2 pkgname=qtilities-git
3 pkgver=20120121
4 pkgrel=1
5 pkgdesc="Building blocks for Qt applications (development version, with docs)"
6 arch=('i686' 'x86_64')
7 url="http://www.qtilities.org"
8 license=('GPL v3')
9 depends=('qt')
10 makedepends=('git' 'doxygen' 'graphviz')
11 source=()
12 md5sums=()
13 conflicts=('qtilities' 'qtilities-doc')
14 _gitroot="git://github.com/JPNaude/Qtilities.git"
15 _gitname="Qtilities"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27     cd $_gitname
28   fi
30   cd src
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   # BUILD
37   qmake "Qtilities.pro"
38   make || return 1
40   cd ../doc
41   doxygen doxyfile_website
44 package() {
45   install -dm755 $pkgdir/usr/lib
46   install -dm755 $pkgdir/usr/include
47   install -dm755 $pkgdir/usr/share/doc/$pkgname
48   cd $srcdir/$_gitname
49   cp -rdp ./bin/* $pkgdir/usr/lib/
50   cp -r ./doc/output/html_website/* $pkgdir/usr/share/doc/$pkgname/
51   cp -r ./include/* $pkgdir/usr/include/
53   # now we overwrite the .h headers 
54   MODULES=(Core CoreGui ExtensionSystem Logging ProjectManagement Testing)
55   for module in $MODULES; do
56     cp -f src/$module/source/*.h $pkgdir/usr/include/Qtilities$module/
57   done
60 # vim:set ts=2 sw=2 et: