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

PKGBUILD for libva-driver-intel-g45-h264

By: a guest on Jan 22nd, 2013  |  syntax: Bash  |  size: 1.45 KB  |  views: 66  |  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 : Anugrah Redja Kusuma <anugrah.redja@gmail.com>
  2. # Maintainer : Vincent B. <vbmithr@gmail.com>
  3.  
  4.  
  5. pkgname=libva-driver-intel-g45-h264
  6. pkgver=20130122
  7. pkgrel=1
  8. pkgdesc="VA-API implementation for Intel G45 chipsets with H264 support."
  9. arch=('i686' 'x86_64')
  10. url="http://freedesktop.org/wiki/Software/vaapi"
  11. license=('MIT')
  12. depends=('libva')
  13. makedepends=('automake' 'libtool')
  14. options=('!libtool')
  15. conflicts=('libva-intel-driver')
  16. provides=('libva-intel-driver=$pkgver')
  17.  
  18. _gitroot="git://anongit.freedesktop.org/vaapi/intel-driver"
  19. _gitname="intel-driver"
  20.  
  21. build() {
  22.   cd "${srcdir}"
  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.   cd "${_gitname}"
  30.   fi
  31.  
  32.   git checkout -f g45-h264
  33.   msg "GIT checkout done."
  34.   msg "Starting make for: ${pkgname}"
  35.  
  36.   if [[ -d "${srcdir}/${_gitname}-build" ]]; then
  37.       msg "Cleaning the previous build directory..."
  38.       rm -rf "${srcdir}/${_gitname}-build"
  39.   fi
  40.  
  41.   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
  42.  
  43.   cd "${srcdir}/${_gitname}-build"
  44.   msg "Starting configure..."
  45.  
  46.   sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
  47.   ./autogen.sh
  48.   ./configure --prefix=/usr
  49.   make
  50. }
  51.  
  52. package() {
  53.   cd "${srcdir}/${_gitname}-build"
  54.   make DESTDIR="${pkgdir}" install
  55.   install -m644 -D COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
  56. }