mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# contributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/
|
|
|
|
pkgname=handbrake-cli
|
|
pkgver=1.0.0
|
|
pkgrel=1
|
|
pkgdesc="Multithreaded video transcoder (CLI)"
|
|
arch=('x86_64')
|
|
url="http://handbrake.fr/"
|
|
license=('GPL')
|
|
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')
|
|
source=("https://handbrake.fr/mirror/HandBrake-$pkgver.tar.bz2"
|
|
"handbrake-fix-missing-x265-link-flag.patch")
|
|
categories=('multimedia')
|
|
sha256sums=('15fb4593c70d75621212e4499f018c3c93d7ce39f1083bf527d4616ded0044c5'
|
|
'05e212e76b6e0b94a04de02cbeb7bf9db607059e19297b5bd3d0d143135285c4')
|
|
|
|
prepare() {
|
|
cd "$srcdir/HandBrake-$pkgver"
|
|
|
|
# https://bugs.gentoo.org/show_bug.cgi?id=552792
|
|
patch -Np1 -i ../handbrake-fix-missing-x265-link-flag.patch
|
|
|
|
# Use more system libs
|
|
# Bundled libbluray is kept because it is patched locally
|
|
# Our ffmpeg is a liitle old so keep using bundled version
|
|
for _lib in x265 libvpx libdvdnav libdvdread; do
|
|
sed -i "/MODULES += contrib\/$_lib/d" make/include/main.defs
|
|
done
|
|
}
|
|
build() {
|
|
cd "$srcdir/HandBrake-$pkgver"
|
|
|
|
./configure --prefix=/usr \
|
|
--force \
|
|
--disable-gtk \
|
|
--disable-gtk-update-checks
|
|
cd build
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/HandBrake-$pkgver/build"
|
|
|
|
install -D HandBrakeCLI "$pkgdir/usr/bin/handbrake-cli"
|
|
}
|