updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-bluetooth-git / PKGBUILD
blob123e29f9da3823189c3d3cb28c8f2323e45499ae
1 # Contributor: Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
3 pkgname=gnome-bluetooth-git
4 _pkgname=gnome-bluetooth
5 pkgver=20110531
6 pkgrel=1
7 pkgdesc="The GNOME Bluetooth Subsystem"
8 arch=('i686' 'x86_64')
9 url="http://live.gnome.org/GnomeBluetooth"
10 license=('GPL' 'LGPL')
11 depends=('gnome-control-center' 'hicolor-icon-theme' 'gvfs-obexftp' 'obexd-client' 'dconf')
12 makedepends=('intltool' 'gtk-doc' 'nautilus-sendto' 'gobject-introspection' 'gnome-common' 'git' 'automake' 'autoconf')
13 options=('!libtool' '!emptydirs')
14 provides=('gnome-bluetooth')
15 conflicts=('gnome-bluetooth')
16 install=gnome-bluetooth.install
17 source=(61-gnome-bluetooth-rfkill.rules)
18 md5sums=('9fb6c8dcb5a3de3a953bf2ef42063e6e')
20 _gitroot="git://git.gnome.org/gnome-bluetooth"
21 _gitname="gnome-bluetooth"
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}
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf ${srcdir}/build
38   git clone ${srcdir}/$_gitname ${srcdir}/build
39   cd ${srcdir}/build
41   ./autogen.sh --prefix=/usr \
42     --sysconfdir=/etc \
43     --localstatedir=/var \
44     --disable-desktop-update \
45     --disable-icon-update \
46     --disable-schemas-compile
47   make
50 package() {
51   cd ${srcdir}/build
52   make DESTDIR=${pkgdir} install
54   install -m644 -D "${srcdir}/61-gnome-bluetooth-rfkill.rules" \
55                    "${pkgdir}/lib/udev/rules.d//61-gnome-bluetooth-rfkill.rules"
56   install -d ${pkgdir}/etc/ld.so.conf.d
57   echo "/usr/lib/gnome-bluetooth" > ${pkgdir}/etc/ld.so.conf.d/${_pkgname}.conf