1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
5 pkgdesc="An on-the-fly display switch utility, intended to be used on laptops, especially with nVidia cards."
7 url="http://willem.engen.nl/projects/disper/"
10 source=(http://ppa.launchpad.net/disper-dev/ppa/ubuntu/pool/main/d/disper/disper_${pkgver}.tar.gz)
11 md5sums=('aff6ca9266eecfc3f646c0de573eca91')
12 sha256sums=('a8d031757e17a6017b131e9efff5eda7dcf6bc7c78293dbf9d3621566a8bd8d5')
15 cd "$srcdir/dispercur"
17 # Patch to use python2
18 sed -i -e 's|`src/disper.py|`python2 src/disper.py|' Makefile
24 cd "$srcdir/dispercur"
25 make DESTDIR="$pkgdir" install
27 # Patch to use python2
28 find "$pkgdir" -type f \( -name '*.py' -or -executable \) -exec \
29 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
30 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \