PKGBUILD 1.36 KB
Newer Older
1
# cpntributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/
2

3
pkgname=handbrake-cli
4
pkgver=0.10.2
Jeff Huang's avatar
Jeff Huang committed
5
pkgrel=1
Jeff Huang's avatar
Jeff Huang committed
6
pkgdesc="Multithreaded video transcoder (CLI)"
Neophytos's avatar
Neophytos committed
7
arch=('x86_64')
8 9
url="http://handbrake.fr/"
license=('GPL')
Jeff Huang's avatar
Jeff Huang committed
10 11
depends=('bzip2' 'gcc-libs' 'zlib' 'fribidi' 'libass' 'lame' 'libxml2' 'libtheora' 'libsamplerate' 'libbluray' 'x264' 'libdvdnav')
makedepends=('intltool' 'python2' 'yasm' 'wget' 'libnotify' 'gst-plugins-base' 'dbus-glib')
Jeff Huang's avatar
Jeff Huang committed
12
source=("https://handbrake.fr/mirror/HandBrake-$pkgver.tar.bz2")
13
categories=('multimedia')
14
sha512sums=('7059a88fac1e4810c54880eb4afe58716af7ac81e5b098e34f3a68c19d7c03e51b57e1a196603e2c8d377e94bb3a910d20f1d9ed62d3eab6422031e62730d4a2')
15

Jeff Huang's avatar
Jeff Huang committed
16
prepare() {
17
  cd "$srcdir/HandBrake-$pkgver"
18 19 20 21 22 23
  
  # Use more system libs
  # We had ffmpeg here as well but it broke PGS subtitle processing
  # https://forum.handbrake.fr/viewtopic.php?f=13&t=27581
  sed -i \
    -e '/MODULES += contrib\/libbluray/d' \
Jeff Huang's avatar
Jeff Huang committed
24 25
    -e '/MODULES += contrib\/libdvdnav/d' \
    -e '/MODULES += contrib\/libdvdread/d' \
26
    make/include/main.defs
Jeff Huang's avatar
Jeff Huang committed
27 28 29 30
}    
build() {
  cd "$srcdir/HandBrake-$pkgver"
  
31 32 33
  ./configure --prefix=/usr \
              --force \
              --disable-gtk \
Jeff Huang's avatar
Jeff Huang committed
34
              --disable-gtk-update-checks
35 36 37 38
  cd build
  make
}

39
package() {
40
  cd "$srcdir/HandBrake-$pkgver/build"
41
  
42
  install -D HandBrakeCLI "$pkgdir/usr/bin/handbrake-cli"
43
}