blob: f47ca184f80921991c64460cc81af3a94a43f560 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Norbert Preining <norbert@preining.info>
_UpstreamPkgName=FastFlix
pkgname=${_UpstreamPkgName,,}
pkgver=6.2.1
pkgrel=1
pkgdesc="Simple and friendly GUI for encoding videos"
arch=('x86_64')
url="https://github.com/cdgriffith/$_UpstreamPkgName"
license=('MIT')
makedepends=('git' 'python' 'icoutils' 'uv')
depends=('zlib' 'ffmpeg')
optdepends=('nvenc: hardware accelerated encoding on NVIDIA cards'
'x265: encoding to H265/HEVC'
'x264: encoding to H264/AVC'
'rav1e: encoding to AV1'
'libwebp: encoding to WebP')
source=(git+${url}.git#tag=${pkgver}
FastFlix.desktop)
sha256sums=('85b3cd092aeb7c1df24fde80b36d16678a697fe45c2870aba148ea5f34ffb6cf'
'cbcb6f228b858a69a860aa6a3283f0f4293e1246485566d20f60a93030f1f847')
#prepare() {
# cd $_UpstreamPkgName
# patch --forward --strip=1 --input="${srcdir}/py-version-updates.patch"
#}
build() {
cd ${_UpstreamPkgName}
uv sync --frozen
uv run pyinstaller FastFlix_Nix_OneFile.spec
# convert icon.ico to png for desktop file
icotool --extract --index=1 -o FastFlix.png fastflix/data/icon.ico
}
package() {
cd ${_UpstreamPkgName}
install -Dm 755 -t "${pkgdir}/usr/bin" dist/FastFlix
# install icon and desktop file
install -Dm 644 -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps" FastFlix.png
install -Dm 644 -t "${pkgdir}/usr/share/applications" "${srcdir}/FastFlix.desktop"
# since it is MIT we need to install a license file
install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
# install documentation
install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
}
check() {
cd ${_UpstreamPkgName}
chmod +x dist/FastFlix
dist/FastFlix --version
dist/FastFlix --test
}
|