updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / uxlaunch-git / PKGBUILD
blob67602053c2e8f0f1ed777252dcabc77aba1c6dec
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=uxlaunch-git
4 pkgver=20110220
5 pkgrel=1
6 pkgdesc="A generic X session launch utility for MeeGo"
7 arch=('i686' 'x86_64')
8 url="http://meego.com"
9 license=('GPL')
10 groups=('meego')
11 depends=('consolekit' 'xdg-user-dirs')
12 makedepends=('git')
13 provides=('uxlaunch')
14 conflicts=('uxlaunch')
15 source=('startmeego.sh' 'arch-meego.desktop' 'meego.path')
16 md5sums=('72628960e726038a8ca645366c102671'
17          '9ce24925123f37dc39ed101b376b6bbc'
18          '9c8290a6eef34738eb7e0a5b28be7504')
20 _gitroot="git://gitorious.org/meego-os-base/uxlaunch.git"
21 _gitname="uxlaunch"
23 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot $_gitname
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
41   ./configure --prefix=/usr
42   make mutterlibexedir=/usr/lib/mutter
45 package() {
46   cd "$srcdir/$_gitname-build"
47   make DESTDIR="$pkgdir/" install
49   install -Dm644 ${srcdir}/meego.path \
50     ${pkgdir}/etc/gconf/2/meego.path
51   install -d ${pkgdir}/etc/gconf/gconf.xml.meego
53   install -Dm644 ${srcdir}/arch-meego.desktop \
54     ${pkgdir}/usr/share/xsessions/arch-meego.desktop
55   install -Dm755 ${srcdir}/startmeego.sh \
56     ${pkgdir}/usr/bin/startmeego
58   install -d ${pkgdir}/var/log
59   touch ${pkgdir}/var/log/uxlaunch.log