desktop/handbrake-cli/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

2016-12-27 19:52:57 +08:00
# contributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/
pkgname=handbrake-cli
2018-07-02 20:26:14 +08:00
pkgver=1.1.1
2018-04-18 16:43:46 +08:00
pkgrel=1
2014-11-25 19:03:57 +08:00
pkgdesc="Multithreaded video transcoder (CLI)"
2013-05-30 04:33:19 +08:00
arch=('x86_64')
2018-07-02 20:26:14 +08:00
url="https://handbrake.fr/"
2011-02-22 06:36:19 +08:00
license=('GPL')
2016-12-27 19:52:57 +08:00
depends=('bzip2' 'gcc-libs' 'zlib' 'fribidi' 'libass' 'lame' 'libxml2'
'libtheora' 'libsamplerate' 'ffmpeg' 'libx264' 'x264' 'x265' 'libvpx'
'libdvdnav' 'jansson')
makedepends=('intltool' 'python2' 'yasm' 'wget' 'libnotify' 'gst-plugins-base' 'dbus-glib' 'cmake')
2018-07-02 20:26:14 +08:00
source=("https://download2.handbrake.fr/$pkgver/HandBrake-$pkgver-source.tar.bz2")
categories=('multimedia')
2018-07-02 20:26:14 +08:00
sha256sums=('e3390c5fd901fb06d72e29c62a63d373d5fb5b3467295d114d815ae7b78a9d7a')
2014-11-25 19:03:57 +08:00
prepare() {
2018-04-18 16:43:46 +08:00
cd HandBrake-$pkgver
2016-12-27 19:52:57 +08:00
# Use more system libs
2016-12-27 19:52:57 +08:00
# Bundled libbluray is kept because it is patched locally
# Our ffmpeg is a liitle old so keep using bundled version
2017-04-11 07:02:16 +08:00
for _lib in libvpx libdvdnav libdvdread; do
2016-12-27 19:52:57 +08:00
sed -i "/MODULES += contrib\/$_lib/d" make/include/main.defs
done
2014-11-25 19:03:57 +08:00
}
build() {
2018-04-18 16:43:46 +08:00
cd HandBrake-$pkgver
2014-11-25 19:03:57 +08:00
./configure --prefix=/usr \
--force \
--disable-gtk \
2014-11-25 19:03:57 +08:00
--disable-gtk-update-checks
2011-02-22 06:36:19 +08:00
cd build
make
}
package() {
2018-04-18 16:43:46 +08:00
cd HandBrake-$pkgver/build
install -D HandBrakeCLI "$pkgdir/usr/bin/handbrake-cli"
2011-02-22 06:36:19 +08:00
}