Created
January 5, 2024 13:09
-
-
Save ycrack/788c6c55343818b53f388399c01fd6e2 to your computer and use it in GitHub Desktop.
QSVEnc for Arch Linux
This file contains hidden or 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
| _UpstreamPkgName=QSVEnc | |
| pkgname=${_UpstreamPkgName,,} | |
| pkgver=7.58 | |
| pkgrel=1 | |
| pkgdesc="Intel Quick Sync Video based command line encoder" | |
| arch=('x86_64') | |
| url="https://github.com/rigaya/$_UpstreamPkgName" | |
| license=('MIT') | |
| depends=( | |
| 'intel-media-driver' | |
| 'intel-compute-runtime' | |
| 'onevpl-intel-gpu' | |
| 'libva' | |
| libavcodec.so | |
| libavformat.so | |
| libavfilter.so | |
| libavutil.so | |
| libswresample.so | |
| libavdevice.so | |
| libass.so | |
| ) | |
| optdepends=( | |
| 'avisynth: avs file support' | |
| 'vapoursynth: vpy file support' | |
| ) | |
| makedepends=( | |
| 'cmake' | |
| 'git' | |
| 'opencl-headers' | |
| 'onevpl' | |
| ) | |
| source=("git+${url}.git#tag=${pkgver}") | |
| sha256sums=('SKIP') | |
| prepare() { | |
| cd $_UpstreamPkgName | |
| git submodule init | |
| git -c protocol.file.allow=always submodule update | |
| } | |
| build() { | |
| cd $_UpstreamPkgName | |
| ./configure --prefix=/usr | |
| make | |
| } | |
| package() { | |
| cd $_UpstreamPkgName | |
| make PREFIX="$pkgdir/usr" install | |
| # since it is MIT we need to install a license file | |
| install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" license.txt | |
| # install documentation | |
| install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" QSVEncC_Options.* Readme.* | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment