This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

libvpx-git PKGBUILD

By: a guest on Jun 10th, 2010  |  syntax: Bash  |  size: 1.03 KB  |  views: 149  |  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: h31 <h31mail@yandex.com>
  2. # Contributor: julroy67 <julroy67 [AT] gmail.com>
  3.  
  4. pkgname=libvpx-git
  5. pkgver=20100610
  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. makedepends=('gcc-libs' 'git' 'yasm')
  12. conflicts=('libvpx')
  13.  
  14. _gitroot='git://review.webmproject.org/libvpx.git'
  15. _gitname='libvpx'
  16.  
  17. build() {
  18.         msg "Connecting to the GIT server...."
  19.         cd "$srcdir"
  20.        
  21.         if [[ -d $srcdir/$_gitname ]] ; then
  22.                 cd "$_gitname"
  23.                 git pull origin
  24.                 msg "The local files are updated."
  25.         else
  26.                 git clone $_gitroot
  27.         fi
  28.        
  29.         msg "GIT checkout done"
  30.         msg "Starting make..."
  31.        
  32.         cd "$srcdir"
  33.         mkdir "$_gitname-build"
  34.         cd "$_gitname-build"
  35.        
  36.         "$srcdir/$_gitname/configure" \
  37.                 --enable-vp8 \
  38.                 --enable-shared \
  39.                 --enable-postproc \
  40.                 --enable-psnr \
  41.                 --enable-pic \
  42.                 --disable-install-docs \
  43.                 --disable-install-srcs
  44.        
  45.         make || return 1
  46.        
  47.         mkdir -p $pkgdir/usr
  48.         mkdir -p $pkgdir/usr/include/vpx
  49.         make DIST_DIR="$pkgdir/usr" install || return 1
  50. }
clone this paste RAW Paste Data