updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / panache-lbase-git / PKGBUILD
bloba1378e8aec0bf5c53d43ae68d8ccd6090058e1d1
1 # Contributor: feufochmar <feufochmar@d-20.fr>
2 pkgname=panache-lbase-git
3 pkgver=20100212
4 pkgrel=1
5 pkgdesc="A desktop environment based on QT4 from Logram"
6 arch=('i686' 'x86_64')
7 url="http://www.logram-project.org/"
8 license=('GPL')
9 depends=('panache-llibs-git' 'panache-lartworks-git')
10 makedepends=('git')
11 provides=()
12 source=('startlogram.patch' 'magellan.patch' 'logram.desktop')
13 md5sums=('458531c7c3fa1d830c18cc53b7c3d107'
14          '28739a3f2f8dbd58569da1a4b9225e42'
15          '05f71059c2c00481eb5edeedb1ededca')
17 _gitroot="git://gitorious.org/logram/desktop.git"
18 _gitname="desktop"
20 build() {
21   cd $srcdir
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
33   msg "Applying patches"
34   # Qt sysconfdir is /etc on ArchLinux, not /etc/xdg
35   patch -p0 < startlogram.patch
36   patch -p0 < magellan.patch
38   msg "Starting make..."
40   cd $_gitname
41   cd lbase
43   ## clear tmp
44   make clean
46   #
47   # BUILD HERE
48   #
50   make || return 1
51   make DESTDIR="$pkgdir" install || return 1
53   #desktop file
54   mkdir -p $pkgdir/etc/X11/sessions/
55   install -m 644 -p $startdir/logram.desktop $pkgdir/etc/X11/sessions/