Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 21st, 2011  |  syntax: None  |  size: 1.13 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Patrick Burroughs <celticmadman@gmail.com>
  2.  
  3. pkgname=lhnb-git
  4. pkgver=20101218
  5. pkgrel=1
  6. pkgdesc="liskin's hierarchical notebook (git version)"
  7. arch=('i686' 'x86_64')
  8. url="http://git.nomi.cz/?p=tomi/lhnb;a=summary"
  9. license=('GPL')
  10. conflicts=('hnb')
  11. depends=('ncurses')
  12. makedepends=('git')
  13.  
  14. _gitroot="git://git.nomi.cz/tomi/lhnb"
  15. _gitname="lhnb"
  16.  
  17. build() {
  18.   cd "$srcdir"
  19.   msg "Connecting to GIT server...."
  20.  
  21.   if [ -d $_gitname ] ; then
  22.     cd $_gitname && git pull origin
  23.     msg "The local files are updated."
  24.   else
  25.     git clone $_gitroot $_gitname
  26.   fi
  27.  
  28.   msg "GIT checkout done or server timeout"
  29.   msg "Starting make..."
  30.  
  31.   rm -rf "$srcdir/$_gitname-build"
  32.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  33.   cd "$srcdir/$_gitname-build"
  34.  
  35.   msg "Editing Makefile to disable -Werror CFLAGS"
  36.   cat src/Makefile | sed s/-Werror// > src/Makefile.new && mv src/Makefile.new src/Makefile
  37.  
  38.   make
  39. }
  40.  
  41. package() {
  42.   install -D -m755 $srcdir/$_gitname-build/src/hnb $pkgdir/usr/bin/hnb || return 1
  43.   install -D -m644 $srcdir/$_gitname-build/doc/hnb.1 $pkgdir/usr/share/man/man1/hnb.1 || return 1
  44. }
clone this paste RAW Paste Data