1 # Contributor: Cilyan Olowen <gaknar@gmail.com>
5 pkgdesc="LXInput is a small program used to configure keyboard and mouse \
10 depends=('gtk2>=2.12.0')
14 replaces=('lxinput-svn')
19 _gitroot='git://lxde.git.sourceforge.net/gitroot/lxde/lxinput'
25 if [ -d "${srcdir}/${_gitname}" ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout. Preparing sources..."
33 [ -d "${srcdir}/${_gitname}-build" ] && rm -rf "${srcdir}/${_gitname}-build"
34 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
35 cd "${srcdir}/${_gitname}-build"
37 msg "Starting make..."
39 # Generating Makefile, etc
40 ./autogen.sh || return 1
42 ./configure --prefix=/usr \
44 --localstatedir=/var || return 1
46 # Make and install without man pages
47 make SUBDIRS="src po" || return 1
48 make SUBDIRS="src po" DESTDIR="${pkgdir}" install || return 1