Advertisement
Guest User

libvpx-git PKGBUILD

a guest
May 27th, 2010
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. # Maintainer: h31 <h31mail@yandex.com>
  2. # Contributor: julroy67 <julroy67 [AT] gmail.com>
  3.  
  4. pkgname=libvpx-git
  5. pkgver=20100527
  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-install-docs \
  44.         --disable-install-srcs
  45.    
  46.     make || return 1
  47.    
  48.     mkdir -p $pkgdir/usr
  49.     mkdir -p $pkgdir/usr/include/vpx
  50.     make DIST_DIR="$pkgdir/usr" install || return 1
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement