updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / utouch-geis-ubuntu / PKGBUILD
bloba57aa5b9e4eb3d7abdb2d9440859d4f46d5ec68e
1 pkgname=utouch-geis-ubuntu
2 pkgver=2.1.2
3 _ubuntu_ver=0ubuntu3
4 pkgrel=1
5 pkgdesc="Implementation of the GEIS (Gesture Engine Interface and Support) interface."
6 arch=('i686' 'x86_64')
7 url="https://launchpad.net/utouch-geis"
8 license=('GPL' 'LGPL')
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')
19 build() {
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}"
24   done
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
29   make
32 package() {
33   cd "${srcdir}/${pkgname%-*}-${pkgver}"
34   make DESTDIR="${pkgdir}" install
35   sed -i 's|\(#!.*bin.*python$\)|\12|g' "${pkgdir}"/usr/bin/{geisview,pygeis}