1 pkgname=utouch-geis-ubuntu
5 pkgdesc="Implementation of the GEIS (Gesture Engine Interface and Support) interface."
7 url="https://launchpad.net/utouch-geis"
9 depends=('utouch-grail')
10 makedepends=('xorg-server-ubuntu')
11 provides=('utouch-geis')
12 conflicts=('utouch-geis')
13 source=(http://launchpad.net/${pkgname%-*}/trunk/${pkgver}/+download/${pkgname%-*}-${pkgver}.tar.gz
14 http://archive.ubuntu.com/ubuntu/pool/main/u/utouch-geis/utouch-geis_${pkgver}-${_ubuntu_ver}.debian.tar.gz)
16 sha512sums=('a9525ab53acea0e37d797aacd78f7ef052009129a50a336a315c606c0d64103638a7d3899980f4f8dd01a171b26f25c19fb736c4b2845dea0dda0c058f903635'
17 '6e95d4f81124c6fc2c897859943b23fab7f425acc3ef64f6af8c0051048be53928642b5a12cde08432b51eae87591248202ad9aee1114960e209590adc825170')
20 cd "${srcdir}/${pkgname%-*}-${pkgver}"
22 for i in $(cat "${srcdir}/debian/patches/series" | grep -Ev '#'); do
23 patch -Np1 -i "${srcdir}/debian/patches/${i}"
26 PYTHON2VER=$(ls -l /usr/bin/python2 2>&1 | sed 's/^.*\(.\..\)/\1/g')
27 sed -i "/python >= ${PYTHON2VER}/s/python \(>= .\..\)/python-${PYTHON2VER} \1/g" configure
28 PYTHON=/usr/bin/python2 ./configure --prefix=/usr
33 cd "${srcdir}/${pkgname%-*}-${pkgver}"
34 make DESTDIR="${pkgdir}" install
35 sed -i 's|\(#!.*bin.*python$\)|\12|g' "${pkgdir}"/usr/bin/{geisview,pygeis}