Advertisement
Guest User

PKGBUILD Handbrake 0.10.5

a guest
Feb 13th, 2016
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.92 KB | None | 0 0
  1. # $Id$
  2. # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
  3. # Contributor: Giovanni Scafora <giovanni@archlinux.org>
  4. # Contributor: Sebastien Piccand <sebcactus gmail com>
  5.  
  6. pkgname=handbrake
  7. _pkgname=HandBrake
  8. pkgver=0.10.5
  9. pkgrel=1
  10. arch=('x86_64')
  11. url="http://handbrake.fr/"
  12. license=('GPL')
  13. pkgdesc="Multithreaded video transcoder"
  14. screenshot="https://handbrake.fr/img/slides/slide1_lin.jpg"
  15. depends=('bzip2' 'gcc-libs' 'gst-plugins-base' 'libnotify' 'dbus-glib'
  16.            'fribidi' 'libass' 'lame' 'gtk3' 'fontconfig' 'freetype2' 'libxml2'
  17.            'libogg' 'libvorbis' 'libtheora' 'libsamplerate' 'libbluray'
  18.            'libdvdnav' 'librsvg' 'desktop-file-utils'
  19.            'hicolor-icon-theme')
  20. optdepends=('gst-plugins-good: for video previews'
  21.             'gst-libav: for video previews')
  22. makedepends=('intltool' 'python2' 'yasm' 'wget' 'bzip2' 'gcc-libs' 'libnotify'
  23.              'gst-plugins-base' 'gtk3' 'dbus-glib' 'fribidi' 'libass' 'lame'
  24.              'fontconfig' 'freetype2' 'libxml2' 'libogg' 'libvorbis' 'cmake'
  25.              'libtheora' 'libsamplerate' 'libbluray' 'x264' 'libx264' 'libdvdnav' 'librsvg')
  26. install=$pkgname.install
  27. source=(https://handbrake.fr/mirror/$_pkgname-$pkgver.tar.bz2)
  28. sha256sums=('fb9230dd121b456f6829d1d25ac8bbf76e503b51c4efc70f0a7fd2bb8607e2f0')
  29.  
  30. prepare() {
  31.   cd $_pkgname-$pkgver
  32.  
  33.   # Use more system libs
  34.   # We had ffmpeg here as well but it broke PGS subtitle processing
  35.   # https://forum.handbrake.fr/viewtopic.php?f=13&t=27581
  36.   sed -i \
  37.     -e '/MODULES += contrib\/libbluray/d' \
  38.     -e '/MODULES += contrib\/libdvdnav/d' \
  39.     -e '/MODULES += contrib\/libdvdread/d' \
  40.     make/include/main.defs
  41. }
  42.  
  43. build() {
  44.   cd $_pkgname-$pkgver
  45.  
  46.   ./configure \
  47.     --prefix=/usr \
  48.     --force \
  49.     --disable-gtk-update-checks
  50.   cd build
  51.   make
  52. }
  53.  
  54. package() {
  55.  
  56.   cd $_pkgname-$pkgver/build
  57.  
  58.   make DESTDIR=$pkgdir install
  59.   rm "$pkgdir/usr/bin/HandBrakeCLI"
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement