updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / skype4py / PKGBUILD
blob0650e6858a8d1550366d56cc3b1384bdd5c6a839
1 # Maintainer: Renzo Carbonara < gnuk0001 at gmail >
2 # Maintainer: Thomas Dziedzic < gostrc at gmail >
3 # Contributor: Cilyan Olowen
4 # Contributor: Stanislav Karchebny <berkus+arch@madfire.net>
6 pkgname=skype4py
7 pkgver=1.0.32.0
8 pkgrel=8
9 pkgdesc='Python wrapper for Skype public API.'
10 arch=('i686' 'x86_64')
11 license=('BSD')
12 url='http://sourceforge.net/projects/skype4py/'
13 depends=('python2' 'skype')
14 source=("http://downloads.sourceforge.net/skype4py/Skype4Py-$pkgver.tar.gz"
15         "python27-fix_os_execlp_call.patch")
16 md5sums=('0dc52c41b7f24815ff88d6af4c10de04'
17          '9b8737b4be1680d810740f42d51876a4')
19 build() {
20   site_packages_dir=`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
22   chmod -R a+rX Skype4Py-$pkgver/
23   chmod -R u+w Skype4Py-$pkgver/
25   cd "Skype4Py-$pkgver"
26   patch -p0 < "${srcdir}/python27-fix_os_execlp_call.patch"
28   python2 setup.py install --root="$pkgdir" --prefix=/usr
30   install -d "${pkgdir}/usr/share/licenses/${pkgname}"
31   mv "${pkgdir}${site_packages_dir}/Skype4Py/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"