1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
5 pkgver=2.2.3.${_ubuntu_rel}
7 pkgdesc="Implementation of the GEIS (Gesture Engine Interface and Support) interface."
9 url="https://launchpad.net/utouch-geis"
10 license=('GPL' 'LGPL')
11 depends=('utouch-grail')
12 makedepends=('xorg-server-ubuntu')
13 source=("http://launchpad.net/${pkgname}/trunk/${pkgname}-${pkgver%.*}/+download/${pkgname}-${pkgver%.*}.tar.gz"
14 "https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver%.*}-${_ubuntu_rel}.debian.tar.gz")
15 sha512sums=('cafecbb4ceda5b5c263f1b5f333cf3e0f5e938a10ff4083b133c6e4ef879bf0c01f20a94552296d846687cacc8aed091c43961de5467d16f3e334768ceafd496'
16 'ba667751c9ba46e584f550a97fb1e08c19a8dfd48c23b98d6032c992d7b35c046fc5a454b3e632606fa03d7d874c703b4e7b0c48b5637f4c3bc4808ae6411adf')
19 cd "${srcdir}/${pkgname}-${pkgver%.*}"
21 # Apply Ubuntu patches
22 for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); 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 --disable-static
33 cd "${srcdir}/${pkgname}-${pkgver%.*}"
34 make DESTDIR="${pkgdir}/" install
35 sed -i 's|\(#!.*bin.*python$\)|\12|g' "${pkgdir}"/usr/bin/{geisview,pygeis}