updated on Sun Jan 22 04:03:10 UTC 2012
[aur-mirror.git] / gpointing-device-settings-git / PKGBUILD
blobdd20123de69a9960159065eea8d20ab900f734fc
1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
3 pkgname=gpointing-device-settings-git
4 pkgver=20120121
5 pkgrel=1
6 pkgdesc=""
7 arch=('i686' 'x86_64')
8 url="http://live.gnome.org/GPointingDeviceSettings"
9 license=('GPL')
10 depends=('desktop-file-utils' 'gconf' 'gnome-settings-daemon' 'gtk2' 'xorg-xinput')
11 makedepends=('git' 'intltool')
12 provides=('gpointing-device-settings')
13 conflicts=('gpointing-device-settings')
14 install=${pkgname}.install
15 source=('fixes.patch')
16 sha512sums=('af4d86a8a8936aa1ccb427bd23df26ead7d8bf63982ad65272f3ac3987faa7793241e864181be5c53669ffa5e4d4befa1fcac93e9fcf55b0295c59914768f2ca')
18 _gitroot='git://git.gnome.org/gpointing-device-settings'
19 _gitname='gpointing-device-settings'
21 build() {
22   cd "${srcdir}"
23   msg "Connecting to GIT server...."
25   if [[ -d "${_gitname}" ]]; then
26     cd "${_gitname}" && git pull origin
27     msg "The local files are updated."
28   else
29     git clone "${_gitroot}" "${_gitname}"
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting build..."
35   rm -rf "${srcdir}/${_gitname}-build"
36   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
37   cd "${srcdir}/${_gitname}-build"
39   # Apply fixes (based on Fedora patches)
40   patch -Np1 -i "${srcdir}/fixes.patch"
42   ./autogen.sh
43   ./configure --prefix=/usr --sysconfdir=/etc
44   #MAKEFLAGS="-j1"
45   make ${MAKEFLAGS}
48 package() {
49   cd "${srcdir}/${_gitname}-build"
50   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}/" install
52   install -dm755 "${pkgdir}/usr/share/gconf/schemas/"
53   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname%-*}.schemas" --domain ${pkgname%-*} "${pkgdir}"/etc/gconf/schemas/*.schemas
55   rm -f "${pkgdir}"/etc/gconf/schemas/*.schemas
58 # vim:set ts=2 sw=2 et: