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

libvpx-git PKGBUILD

By: a guest on May 19th, 2010  |  syntax: Bash  |  size: 1.10 KB  |  views: 138  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: h31 <h31mail@yandex.com>
  2. # Contributor: julroy67 <julroy67 [AT] gmail.com>
  3.  
  4. pkgname=libvpx-git
  5. pkgver=20100519
  6. pkgrel=1
  7. pkgdesc="The VP8 Codec SDK (from git)"
  8. arch=('i686' 'x86_64')
  9. url="http://www.webmproject.org/"
  10. license=('BSD')
  11. depends=()
  12. makedepends=('gcc-libs' 'git' 'yasm')
  13. provides=()
  14. conflicts=('libvpx')
  15.  
  16. _gitroot='git://review.webmproject.org/libvpx.git'
  17. _gitname='libvpx'
  18.  
  19. build() {
  20.         msg "Connecting to the GIT server...."
  21.         cd "$srcdir"
  22.        
  23.         if [[ -d $srcdir/$_gitname ]] ; then
  24.                 cd "$_gitname"
  25.                 git pull origin
  26.                 msg "The local files are updated."
  27.         else
  28.                 git clone $_gitroot
  29.         fi
  30.        
  31.         msg "GIT checkout done"
  32.         msg "Starting make..."
  33.        
  34.         cd "$srcdir"
  35.         mkdir "$_gitname-build"
  36.         cd "$_gitname-build"
  37.        
  38.         "$srcdir/$_gitname/configure" \
  39.                 --enable-vp8 \
  40.                 --enable-postproc \
  41.                 --enable-psnr \
  42.                 --enable-pic \
  43.                 --disable-examples \
  44.                 --disable-install-docs \
  45.                 --disable-install-bins \
  46.                 --disable-install-srcs \
  47.                 --disable-md5
  48.        
  49.         make || return 1
  50.        
  51.         mkdir $pkgdir/usr
  52.         make DIST_DIR="$pkgdir/usr" install || return 1
  53.         rm $pkgdir/usr/md5sums.txt
  54. }