Skip to content

Commit

Permalink
Workflows patches
Browse files Browse the repository at this point in the history
  • Loading branch information
Nj0be committed Sep 1, 2024
1 parent 228ee69 commit 7114a32
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build HandBrake Linux
run: |
makepkg -s
runuser -unobody makepkg
mv src/HandBrake/build/HandBrakeCLI HandBrakeCLI-$(date +'%Y%m%d')-master-x86_64
mv src/HandBrake/build/gtk/src/ghb ghb-$(date +'%Y%m%d')-master-x86_64
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
run: |
cd HandBrake
./configure --enable-qsv --enable-vce --enable-nvenc --enable-nvdec --launch-jobs=0 --launch
mv build/HandBrakeCLI HandBrakeCLI-$(date +'%Y%m%d')-master-x86_64
mv build/gtk/src/ghb ghb-$(date +'%Y%m%d')-master-x86_64
mv build/HandBrakeCLI ../HandBrakeCLI-$(date +'%Y%m%d')-master-x86_64
mv build/gtk/src/ghb ../ghb-$(date +'%Y%m%d')-master-x86_64
- name: Upload HandBrake CLI
uses: actions/upload-artifact@v4
Expand Down
79 changes: 79 additions & 0 deletions PKGBUILD
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"
}

0 comments on commit 7114a32

Please sign in to comment.