updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / iview / PKGBUILD
blob2d52dbdc5ea6cc0080843697037c73c52e76ace4
1 pkgname=iview
2 _proj="python-$pkgname"
3 pkgver=69
4 pkgrel=1
5 pkgdesc="Alternative frontend to ABC's Iview"
6 url="https://jeremy.visser.name/2009/08/$_proj"
7 arch=(any)
8 license=(GPL3)
9 makedepends=(bzr python2)
10 depends=(python2 python-beautifulsoup rtmpdump)
11 provides=("$_proj")
12 _loc="https+urllib://jeremy.visser.name/bzr/$_proj"
13 source=(python2.diff)
14 md5sums=(674dc19eb9c7a2a23bde17a9f2874c58)
16 build() {
17     cd "$srcdir"
18     
19     if test -d "$_proj"; then
20         cd "$_proj"
21         bzr pull "$_loc" --revision "$pkgver"
22     else
23         bzr branch "$_loc" --revision "$pkgver" "$_proj"
24         cd "$_proj"
25     fi
26     
27     patch -p0 < ../python2.diff
30 package() {
31     cd "$srcdir/$_proj"
32     python2 setup.py install --root="$pkgdir" --optimize=1