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

PKGBUILD for aften-git

By: a guest on Jan 16th, 2011  |  syntax: Bash  |  size: 0.99 KB  |  views: 130  |  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. pkgname=aften-git
  2. pkgver=20110116
  3. pkgrel=1
  4. pkgdesc="Audio encoder which generates compressed audio streams based on ATSC A/52 specification."
  5. arch=('i686' 'x86_64')
  6. url=http://aften.sourceforge.net/
  7. license=('GPL')
  8. provides=('aften')
  9. conflicts=('aften')
  10. makedepends=('cmake' 'git')
  11.  
  12. _gitroot="git://aften.git.sourceforge.net/gitroot/aften/aften"
  13. _gitname="aften"
  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 $_gitname
  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.   mkdir "$srcdir/$_gitname-build/build"
  32.   cd "$srcdir/$_gitname-build/build"
  33.  
  34.   cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSHARED=true
  35.   make
  36.  
  37. }
  38.  
  39. package() {
  40.   cd "$srcdir/$_gitname-build/build"
  41.   make DESTDIR="$pkgdir/" install
  42. }
clone this paste RAW Paste Data