mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# contributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/
|
|
|
|
pkgname=handbrake-cli
|
|
pkgver=1.1.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://download2.handbrake.fr/1.1.0/HandBrake-$pkgver-source.tar.bz2")
|
|
categories=('multimedia')
|
|
sha256sums=('a02e7c6f8bd8dc28eea4623663deb5971dcbca1ad59da9eb74aceb481d8c40da')
|
|
|
|
prepare() {
|
|
cd HandBrake-$pkgver
|
|
|
|
# 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 libvpx libdvdnav libdvdread; do
|
|
sed -i "/MODULES += contrib\/$_lib/d" make/include/main.defs
|
|
done
|
|
}
|
|
build() {
|
|
cd HandBrake-$pkgver
|
|
|
|
./configure --prefix=/usr \
|
|
--force \
|
|
--disable-gtk \
|
|
--disable-gtk-update-checks
|
|
cd build
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd HandBrake-$pkgver/build
|
|
|
|
install -D HandBrakeCLI "$pkgdir/usr/bin/handbrake-cli"
|
|
}
|