blob: e3089c6899c987b2789ca28ab3e12e1378894407 (
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
57
58
59
60
61
62
63
64
65
|
# Maintainer: Donald Webster <fryfrog@gmail.com>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: Pieter Goetschalckx <3.14.e.ter@gmail.com>
pkgname=bazarr-beta
_pkgname=${pkgname/-beta}
pkgver=1.4.6_beta.21
pkgrel=1
pkgdesc="Subtitle management and download automation for Sonarr and Radarr."
arch=('any')
url="https://www.bazarr.media"
license=('GPL-3.0-or-later')
depends=(
'bash'
'ffmpeg'
'gdk-pixbuf2'
'python'
'python-gevent'
'python-gevent-websocket'
'python-lxml'
'python-numpy'
'python-pillow'
'python-webrtcvad'
'sqlite'
'unrar'
'python-platformdirs'
'python-ujson'
'python-greenlet'
'python-setuptools'
'python-tomli'
)
makedepends=('unzip')
provides=('bazarr')
conflicts=('bazarr')
options=('!debug')
source=(
"${pkgname}-${pkgver//_/-}.zip::https://github.com/morpheus65535/bazarr/releases/download/v${pkgver//_/-}/bazarr.zip"
'bazarr.service'
'bazarr.sysusers'
'bazarr.install'
'bazarr.tmpfiles'
)
noextract=("${pkgname}-${pkgver//_/-}.zip")
sha256sums=('d965a50f3e778b29a2f0848fbde03d843b026cbd483e77bacec29531b0632a28'
'2782e250117f7a85110d62472b834316fadcf32ca1874ad01541e7dd9a54215c'
'73a60121fd2b7b8f5bad75ec4b0f92552fcae0e29a4b9e6aaf15f86a825a88a3'
'573beeac951d427e980332ce4d8645ae2299082e6c9c04f96e2a41a98c3acc60'
'e7055260d0f3554e8b628d9560d8e12a40f720d76542048df0dfc838db88357b')
prepare() {
unzip -qq -o -d "${pkgname}-${pkgver//_/-}" "${pkgname}-${pkgver//_/-}.zip"
}
package() {
local _pyver="$(python -c 'import sys; print("%i.%i" % sys.version_info[:2])')"
local _pdir="${pkgdir}/usr/lib/python${_pyver}/site-packages/${_pkgname}"
install -dm755 "${_pdir}"
cp -dpr --no-preserve=ownership "${srcdir}/${pkgname}-${pkgver//_/-}/"* "${_pdir}"
python -m compileall "${pkgdir}"
install -Dm644 "${srcdir}/bazarr.service" "${pkgdir}/usr/lib/systemd/system/bazarr.service"
install -Dm644 "${srcdir}/bazarr.sysusers" "${pkgdir}/usr/lib/sysusers.d/bazarr.conf"
install -Dm644 "${srcdir}/bazarr.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/bazarr.conf"
}
|