1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
3 pkgname=gpointing-device-settings-git
8 url="http://live.gnome.org/GPointingDeviceSettings"
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'
23 msg "Connecting to GIT server...."
25 if [[ -d "${_gitname}" ]]; then
26 cd "${_gitname}" && git pull origin
27 msg "The local files are updated."
29 git clone "${_gitroot}" "${_gitname}"
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"
43 ./configure --prefix=/usr --sysconfdir=/etc
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: