Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

PKGBUILD of ttyrec

By: fpint0 on Nov 2nd, 2011  |  syntax: None  |  size: 1.10 KB  |  views: 93  |  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: Jimmy Tang <jtang@tchpc.tcd.ie>
  2.  
  3. pkgname=ttyrec-git
  4. pkgver=20100201
  5. pkgrel=1
  6. pkgdesc="ttyrec is a tty recorder - this is not the official upstream version"
  7. arch=('i686' 'x86_64')
  8. url="http://git.kitenet.net/?p=ttyrec.git"
  9. license=('BSD')
  10. makedepends=('git')
  11.  
  12. _gitroot="git://git.kitenet.net/ttyrec.git"
  13. _gitname="ttyrec"
  14.  
  15. build() {
  16.   cd "$srcdir"
  17.   msg "Connecting to GIT server...."
  18.  
  19.   if [ -d $_gitname ] ; then
  20.     cd $_gitname && git pull origin
  21.     msg "The local files are updated."
  22.   else
  23.     git clone $_gitroot
  24.   fi
  25.  
  26.   msg "GIT checkout done or server timeout"
  27.   msg "Starting make..."
  28.  
  29.   rm -rf "$srcdir/$_gitname-build"
  30.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  31.   cd "$srcdir/$_gitname-build"
  32.  
  33.   #
  34.   # BUILD HERE
  35.   #
  36.   make CFLAGS="-O2 -Wall -DSVR4 -D_XOPEN_SOURCE=500" || return 1
  37.   install -d $pkgdir/usr/share/doc/$pkgname $pkgdir/usr/share/man/man1 $pkgdir/usr/bin
  38.   install -D ttyrec.1 ttyplay.1 ttytime.1 $pkgdir/usr/share/man/man1
  39.   install -D README $pkgdir/usr/share/doc/$pkgname
  40.   install -Dm755 ttyrec ttyplay ttytime $pkgdir/usr/bin
  41. }
  42.  
clone this paste RAW Paste Data