1 # Contributor: DonVla <donvla@users.sourceforge.net>
6 pkgdesc="Python bindings to the XOSD library"
9 url="http://ichi2.net/pyosd/"
10 source=(http://ichi2.net/pyosd/${pkgname}-${pkgver}.tar.gz)
11 depends=('python2' 'xosd')
12 md5sums=('3beb6692c4d76b3318e7876a6dd03bdf')
13 sha256sums=('a8a52357845f9c84faeab2983f4042b91bbcbb3355d4e70783de7a97aeb3564c')
16 cd "${srcdir}/${pkgname}-${pkgver}"
17 python2 setup.py build
21 cd "${srcdir}/${pkgname}-${pkgver}"
22 python2 setup.py install --prefix ${pkgdir}/usr
23 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
24 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
25 $(find "${pkgdir}" -name '*.py')