updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / pyosd / PKGBUILD
blob8b41e928be7e8e41fc56d68905379f75ae218906
1 # Contributor: DonVla <donvla@users.sourceforge.net>
3 pkgname=pyosd
4 pkgver=0.2.14
5 pkgrel=4
6 pkgdesc="Python bindings to the XOSD library"
7 arch=(i686 x86_64)
8 license=('GPL')
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')
15 build() {
16         cd "${srcdir}/${pkgname}-${pkgver}"
17         python2 setup.py build
20 package() {
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')
27