updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / antico-git / PKGBUILD
blob30c5db807d7cf0e61b468fb6e500b1a55f51e66d
1 # Contributor: Borislav Gerassimov (slimmer) <borislavba (at) gmail.com>
2 # Previous contributors: Jozef K. (jofko) <joffko@gmail.com>
3 pkgname=antico-git
4 pkgver=20090518
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 pkgdesc="Lightweight pure QT4 window manager"
8 url="http://www.antico.netsons.org/"
9 license=('GPL')
10 depends=('qt>=4.4')
11 makedepends=('git' 'make')
12 install=$pkgname.install
14 _gitroot=git://github.com/antico/antico.git
15 _gitname=antico
16 _builddir=$srcdir/$_gitname-build
18 build() {
19   cd $srcdir/
20   msg "Connecting to github.com GIT server...."
21   if [ -d $srcdir/$_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
29   git clone $_gitname $_gitname-build
31   cd $_builddir
32   qmake VERBOSE=1 || return 1
33   make || return 1
35   install -d $pkgdir/usr/share/antico/theme/default
36   install -m755 $_builddir/antico $pkgdir/usr/share/antico/antico
37   install -m644 $_builddir/theme/default/* $pkgdir/usr/share/antico/theme/default/
38   install -m644 $_builddir/COPYING $pkgdir/usr/share/antico/COPYING
39   install -m644 $_builddir/README $pkgdir/usr/share/antico/README
40   install -m644 $_builddir/CHANGELOG $pkgdir/usr/share/antico/CHANGELOG
42   # .desktop files
43   install -d $pkgdir/usr/share/xsessions
44   install -m644 $_builddir/antico-gdm.desktop $pkgdir/usr/share/xsessions/
45   install -d $pkgdir/usr/share/apps/kdm/sessions
46   install -m644 $_builddir/antico-kdm.desktop $pkgdir/usr/share/apps/kdm/sessions/
48    # For .desktop compatibility
49   install -d $pkgdir/usr/bin
50   ln -s /usr/share/antico/antico $pkgdir/usr/bin/antico