blob: 15e53b274fb58f06e0e190b51165e88cf3ac16a1 (
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
54
55
56
|
# Maintainer: voldardard <voldardard@example.com>
pkgname=mkv2cast
pkgver=1.2.9
pkgrel=2
pkgdesc="Smart MKV to Chromecast-compatible converter with hardware acceleration"
arch=('any')
url="https://github.com/voldardard/mkv2cast"
license=('GPL3')
provides=('python-mkv2cast')
conflicts=('python-mkv2cast')
depends=('python>=3.8' 'ffmpeg')
optdepends=(
'python-rich: Beautiful progress UI with colors and animations'
'python-tomli: TOML config support (Python < 3.11)'
'python-plyer: Desktop notifications fallback'
'libnotify: Desktop notifications via notify-send'
)
makedepends=('python-build' 'python-installer' 'python-hatchling')
source=("$pkgname-1.2.9-2.tar.gz::https://github.com/voldardard/$pkgname/archive/v1.2.9-2.tar.gz")
sha256sums=('SKIP')
build() {
cd "$pkgname-1.2.9-2"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-1.2.9-2"
python -m installer --destdir="$pkgdir" dist/*.whl
# Man page
install -Dm644 man/mkv2cast.1 "$pkgdir/usr/share/man/man1/mkv2cast.1"
# Bash completion
install -Dm644 completions/mkv2cast.bash "$pkgdir/usr/share/bash-completion/completions/mkv2cast"
# Zsh completion
install -Dm644 completions/_mkv2cast "$pkgdir/usr/share/zsh/site-functions/_mkv2cast"
# Systemd user units
install -Dm644 systemd/mkv2cast-cleanup.service "$pkgdir/usr/lib/systemd/user/mkv2cast-cleanup.service"
install -Dm644 systemd/mkv2cast-cleanup.timer "$pkgdir/usr/lib/systemd/user/mkv2cast-cleanup.timer"
install -Dm644 systemd/mkv2cast-watch.service "$pkgdir/usr/lib/systemd/user/mkv2cast-watch.service"
install -Dm644 systemd/mkv2cast-watch.timer "$pkgdir/usr/lib/systemd/user/mkv2cast-watch.timer"
# Systemd system units (optional, for root cleanup)
install -Dm644 systemd/mkv2cast-cleanup-system.service "$pkgdir/usr/lib/systemd/system/mkv2cast-cleanup-system.service"
install -Dm644 systemd/mkv2cast-cleanup-system.timer "$pkgdir/usr/lib/systemd/system/mkv2cast-cleanup-system.timer"
# Documentation
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/$pkgname/CHANGELOG.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=4 sw=4 et:
|