Advertisement
p4l4din

urlscan-git pkgbuild

Apr 13th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.01 KB | None | 0 0
  1. # Maintainer: Scott Hansen (firecat53) firecat4153 at gmail
  2. pkgname=urlscan-git
  3. pkgver=20120524
  4. pkgrel=1
  5. pkgdesc="Replacement for urlview with html context and other improvements."
  6. arch=('any')
  7. url="https://github.com/firecat53/urlscan-git"
  8. license=('GPL')
  9. conflicts=('urlscan')
  10. provides=('urlscan')
  11. depends=('python2' 'python2-urwid')
  12. makedepends=('git' 'python2-distribute')
  13. install=urlscan.install
  14.  
  15. _gitroot="https://github.com/firecat53/urlscan-git.git"
  16. _gitname="urlscan"
  17.  
  18. build() {
  19.     cd "$srcdir"
  20.     msg "Connecting to GIT server...."
  21.  
  22.     if [ -d $_gitname ] ; then
  23.         cd $_gitname && git pull origin
  24.         msg "The local files are updated."
  25.     else
  26.         git clone $_gitroot $_gitname
  27.     fi
  28.  
  29.     msg "GIT checkout done or server timeout"
  30.     msg "Starting make..."
  31.  
  32.     rm -rf "$srcdir/$_gitname-build"
  33.     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  34. }
  35.  
  36. package() {
  37.     cd "$srcdir/$_gitname-build"
  38.     ./setup.py install --root=${pkgdir} --optimize=1 || return 1
  39. }
  40.  
  41. md5sums=('14b9667095d9bba6543d5be9d48cd85f')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement