-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Maintainer: Fabio 'Lolix' Loli <[email protected]> -> https://github.com/FabioLolix | ||
# Contributor: HurricanePootis <[email protected]> | ||
# Contributor: graysky <graysky AT archlinux DOT us> | ||
# Contributor: jiribb <[email protected]> | ||
# Contributor: David Spicer <azleifel at googlemail dot com> | ||
# Contributor: Andrew Brouwers | ||
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com> | ||
# Contributor: Stefan Husmann <[email protected]> | ||
|
||
pkgbase=handbrake-git | ||
pkgname=(handbrake-git handbrake-cli-git) | ||
pkgver=1.8.0.r135.gdeb4c4578 | ||
pkgrel=1 | ||
pkgdesc="Multithreaded video transcoder. Enabled: x265, nvenc, fdk-aac, qsv, vce, numa, hardened. Last stable branch" | ||
arch=(i686 x86_64) | ||
url="https://handbrake.fr/" | ||
license=(GPL-2.0-only) | ||
source=("HandBrake::git+https://github.com/HandBrake/HandBrake.git" "HandBrake-SVT-AV1-PSY::git+https://github.com/Nj0be/HandBrake-SVT-AV1-PSY.git") | ||
_commondeps=(libxml2 libass libvorbis opus speex libtheora lame libjpeg-turbo | ||
x264 libx264.so jansson libvpx libva numactl) | ||
_guideps=(gst-plugins-base gtk4 libgudev) | ||
makedepends=(git intltool python nasm wget cmake meson llvm clang cargo-c | ||
"${_commondeps[@]}" "${_guideps[@]}") | ||
optdepends=('libdvdcss: for decoding encrypted DVDs' | ||
'intel-media-sdk: for enabling Intel QSV' | ||
'nvidia-utils: for Nvidia users, enable Nvidia nvenc' | ||
'cuda: for Nvidia users, enable Nvidia nvdec' | ||
'amf-amdgpu-pro: for enabling AMD AMF') | ||
sha256sums=('SKIP' 'SKIP') | ||
options=(!lto) | ||
|
||
pkgver() { | ||
cd "HandBrake" | ||
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | ||
} | ||
|
||
build() { | ||
./HandBrake-SVT-AV1-PSY/patch.sh | ||
cd "HandBrake" | ||
|
||
./configure \ | ||
--prefix=/usr \ | ||
--enable-qsv \ | ||
--launch-jobs=$(nproc) \ | ||
--launch | ||
#--harden \ | ||
#--enable-x265 \ | ||
#--enable-libdovi \ | ||
#--enable-numa \ | ||
#--enable-fdk-aac \ | ||
#--enable-nvdec \ | ||
#--enable-nvenc \ | ||
#--enable-vce | ||
} | ||
|
||
package_handbrake-git() { | ||
pkgdesc="Multithreaded video transcoder" | ||
depends=("${_commondeps[@]}" "${_guideps[@]}") | ||
optdepends+=('gst-plugins-good: for video previews' | ||
'gst-libav: for video previews') | ||
provides=(handbrake) | ||
conflicts=(handbrake) | ||
|
||
cd "$srcdir/HandBrake/build" | ||
|
||
make DESTDIR="$pkgdir" install | ||
rm "$pkgdir/usr/bin/HandBrakeCLI" | ||
} | ||
|
||
package_handbrake-cli-git() { | ||
pkgdesc="Multithreaded video transcoder (CLI)" | ||
depends=("${_commondeps[@]}") | ||
provides=(handbrake-cli) | ||
conflicts=(handbrake-cli) | ||
|
||
cd "$srcdir/HandBrake/build" | ||
install -D HandBrakeCLI "$pkgdir/usr/bin/HandBrakeCLI" | ||
} | ||
|