updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / lightdm-bzr / PKGBUILD
blobcfa8861536595c2f5147badd9133c843373b1673
1 # Maintainer: L42y <423300@gmail.com>
2 # Contributor: pisuka <tekmon@gmail.com>
4 pkgname=lightdm-bzr
5 pkgver=1270
6 pkgrel=1
7 pkgdesc="A lightweight display manager."
8 arch=('i686' 'x86_64')
9 url="https://launchpad.net/lightdm"
10 license=(GPL3 LGPL3)
11 depends=('gnome-themes-standard' 'gnome-icon-theme' 'dbus-glib' 'libxklavier' 'intltool' 'qt')
12 optdepends=(
13   'xorg-xserver-xephr: run lightdm in test mode'
15 makedepends=('bzr' 'vala' 'gnome-common' 'gtk-doc' 'gnome-doc-utils' 'pkg-config')
16 conflicts=('lightdm')
17 source=('rc.lightdm' 'lightdm-bzr.install')
18 md5sums=('6699eb35f65ff498d1d05e6782f4f902'
19          '8854d0ee91445357ed28da84aec87885')
20 install=${pkgname}.install
21 backup=('etc/lightdm/lightdm.conf' 'etc/lightdm/keys.conf' 'etc/lightdm/users.conf' 'etc/lightdm/lightdm-gtk-greeter.conf')
22 options=(!libtool)
24 _bzrtrunk="lp:lightdm"
25 _bzrmod="lightdm-trunk"
27 build() {
28   cd "$srcdir"
29   msg "Connecting to Bazaar server...."
31   if [ -d $_bzrmod ] ; then
32     cd ${_bzrmod} && bzr pull ${_bzrtrunk} -r ${pkgver}
33     msg "The local files are updated."
34   else
35     bzr branch ${_bzrtrunk} ${_bzrmod} -r ${pkgver}
36   fi
38   msg "Bazaar checkout done or server timeout"
39   msg "Starting make..."
41   rm -rf "${srcdir}/${_bzrmod}-build"
42   cp -r "${srcdir}/${_bzrmod}" "${srcdir}/${_bzrmod}-build"
43   cd "${srcdir}/${_bzrmod}-build"
45   ./autogen.sh --prefix=/usr \
46     --sysconfdir=/etc \
47     --libexecdir=/usr/lib/lightdm \
48     --disable-static \
49     --enable-introspection=no
50   make
53 package() {
54   cd "$srcdir/$_bzrmod-build"
55   make DESTDIR="${pkgdir}" install
57   rm -rf "${pkgdir}/etc/init"
59   mkdir -p "${pkgdir}/etc/rc.d" "${pkgdir}/var/lib/${pkgname/-bzr/}"
60   install -m755 "${srcdir}/rc.${pkgname/-bzr/}" "$pkgdir/etc/rc.d/${pkgname/-bzr/}"