updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / python2-xcaplib / PKGBUILD
blob336033cf1f62db53c830e3eaf2f7e5fb5053bf71
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 _p=python-xcaplib
5 pkgname=python2-xcaplib
6 pkgver=1.0.16
7 pkgrel=1
8 pkgdesc="A python library for managing XML documents on XCAP server"
9 license=('custom:MIT')
10 arch=('any')
11 url="http://download.ag-projects.com/SipClient"
12 depends=('python2')
13 source=("http://download.ag-projects.com/SipClient/$_p-$pkgver.tar.gz")
14 md5sums=('7c1dcb5995efcd446c835ac8fc8441ac')
16 build() {
17   cd "$srcdir/$_p-$pkgver"
19   sed -i "s|\(env python\).*|\12|" `grep -rl "env python" .`
21   python2 setup.py build
24 package() {
25   cd "$srcdir/$_p-$pkgver"
26   python2 setup.py install --root="$pkgdir" --optimize=1
28   # license
29   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"