1 # Maintainer: Jonathan Wiersma <archaur at jonw dot org>
6 pkgdesc="Daemon for controlling input devices"
7 url="http://gizmod.sourceforge.net"
9 depends=('alsa-lib' 'boost' 'libvisual' 'libxext' 'libsm' 'python')
10 makedepends=('gawk' 'boost-build' 'cmake' 'gcc')
11 install=gizmod.install
12 source=("http://voxel.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2")
13 md5sums=('10e88f8d54fed326ed0e6b8614d99793')
16 cd "${srcdir}/${pkgname}-${pkgver}" || return 1
20 cmake -D CMAKE_BUILD_TYPE=Release \
21 -D CMAKE_INSTALL_PREFIX=/usr \
22 -D DATA_INSTALL_DIR=/usr/share/$pkgname \
23 -D PLUGIN_INSTALL_DIR=/usr/lib/$pkgname \
24 -D SYSCONF_INSTALL_DIR=/etc \
27 # Manually change paths since cmake doesn't seem to read the env vars
28 find -type f -exec sed -ie 's|/usr/etc|/etc|g' {} \; || return 1
31 make DESTDIR="${pkgdir}" install || return 1
33 install -d "${pkgdir}"/etc/udev/rules.d || return 1
34 install -m644 "${startdir}"/10-input-gizmod.rules \
35 "${pkgdir}"/etc/udev/rules.d || return 1