updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / hacker-top-git / PKGBUILD
blobc08c47d1c6e16745d1ae303ec5f80f27441eb595
1 # Maintainer: Nicolas Paris <nicolas.caen@gmail.com>
2 pkgname=hacker-top-git
3 pkgver=20110614
4 pkgrel=2
5 pkgdesc="It's a top-like program for monitoring stories on hacker news (news.ycombinator.com) from the console (fork from pkrumins)"
6 arch=('any')
7 url="https://github.com/Nic0/hacker-top"
8 license=('GPL')
9 depends=('python2-distribute' 'python-beautifulsoup')
10 makedepends=('git')
12 _gitroot="git://github.com/Nic0/hacker-top.git"
13 _gitname="hacker-top"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   python2 setup.py build
37 package() {
38   cd "$srcdir/$_gitname-build"
39   python2 setup.py install --prefix=/usr --root="$pkgdir"
40