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

Untitled

By: a guest on Jun 26th, 2011  |  syntax: None  |  size: 0.91 KB  |  views: 313  |  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. # Mantainer: Gustavo Alvarez <sl1pkn07@gmail.com>
  2.  
  3. pkgname=xavs-svn
  4. pkgver=51
  5. pkgrel=1
  6. pkgdesc="AVS is the Audio Video Standard of China.  This project aims to implement high quality AVS encoder and decoder. (SVN version)"
  7. url="http://xavs.sourceforge.net/"
  8. license=('GPL')
  9. arch=('i686' 'x86_64')
  10. depends=('glibc')
  11.  
  12. _svntrunk=https://xavs.svn.sourceforge.net/svnroot/xavs/trunk
  13. _svnmod=xavs
  14.  
  15. build() {
  16.         if [ -d "${_svnmod}" ]; then
  17.                 msg "Updating local SVN repository."
  18.                 (cd "${_svnmod}" && svn up)
  19.                 msg "SVN update done or server timeout."
  20.         else
  21.                 msg "Checking out SVN repository."
  22.                 svn co "${_svntrunk}" "${_svnmod}"
  23.                 msg "SVN checkout done or server timeout."
  24.         fi
  25.        
  26.         msg "Starting make process."
  27.        
  28.         rm -rf "${_svnmod}-build/"
  29.         cp -r "${_svnmod}" "${_svnmod}-build/"
  30.  
  31.         cd ${_svnmod}-build
  32.         ./configure --enable-shared --prefix=/usr
  33.         make
  34. }
  35.  
  36. package() {
  37.         cd ${srcdir}/${_svnmod}-build
  38.         make DESTDIR="${pkgdir}" install
  39. }