summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 913923c9281ce219b5a23f57854619c4f41f47c2 (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
# Maintainer: Pieter Goetschalckx <3.14.e.ter <at> gmail <dot> com>

_pkgname=bazarr
pkgname=$_pkgname-git
pkgver=r444.c64c4ce
pkgrel=1
pkgdesc="Manage and download subtitles for Sonarr."
arch=('any')
url="https://github.com/morpheus65535/bazarr"
license=('GPL3')
depends=('python'
         'python-apscheduler'
         'python-babelfish'
         'python-bottle'
         'python-bottle-fdsend'
         'python-dogpile.cache'
         'python-enzyme'
         'python-gitpython'
         'python-pillow'
         'python-py-pretty'
         'python-pycountry'
         'python-requests'
         'subliminal'
         'python-tzlocal'
         'python-urllib3'
         'python-waitress'
         'python-langdetect'
         'python-apprise')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
install=$_pkgname.install
source=("git+https://github.com/morpheus65535/bazarr"
        "bazarr.sh"
        "bazarr.service"
        "bazarr.sysusers")
sha256sums=('SKIP'
            '47f59d5acf0df99d8dabfec617fdc57d7620d7843ce871dedc7f46cdae9c7420'
            'a87cb97e29a72b6fa7c8e48b5044a8dd70efea717ef8991c3bd11fb848b31166'
            '288dbffb34c13cc6e3d599144138dd5d0de2ef40807649e3641669a0cb0788fa')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$_pkgname"
  sed -i -e "/update_modules/d" -e "s/unicode/str/g" -e "/reload/d" bazarr.py
  sed -i "s/unicode/str/g" get_series.py
}

package() {
  install -dm755 "${pkgdir}/usr/share"
  cp -dpr --no-preserve=ownership bazarr "${pkgdir}/usr/share/bazarr"
  install -Dm755 bazarr.sh "${pkgdir}/usr/bin/bazarr"
  install -Dm644 bazarr.service "${pkgdir}/usr/lib/systemd/system/bazarr.service"
  install -Dm644 bazarr.sysusers "$pkgdir/usr/lib/sysusers.d/bazarr.conf"
}