blob: f31502f0291becdf7c8b525397925e07e975fdfb (
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
|
# Maintainer: Donald Webster <fryfrog@gmail.com>
pkgname=kometa
pkgver=2.1.0
pkgrel=1
pkgdesc='A powerful tool designed to give you complete control over your Plex media libraries.'
url='https://kometa.wiki'
arch=('any')
license=('MIT')
replaces=('plex-meta-manager')
depends=(
'python-arrapi'
'python-gitpython'
'python-lxml'
'python-num2words'
'python-pathvalidate'
'python-pillow'
'python-plexapi'
'python-psutil'
'python-dotenv'
'python-requests'
'python-retrying'
'python-ruamel-yaml'
'python-schedule'
'python-tmdbapis'
)
makedepends=('python-setuptools')
optdepends=('plex-media-server')
options=('!emptydirs' '!strip' 'staticlibs')
backup=('var/lib/kometa/config.yml')
source=(
"kometa-${pkgver}.tar.gz::https://github.com/Kometa-Team/Kometa/archive/refs/tags/v${pkgver}.tar.gz"
'kometa.service'
'kometa.sysusers'
'kometa.tmpfiles'
)
sha256sums=('c731512c779634c41d00fd9fe7992f20edd422f5b74abcd896253c0e806d8f7e'
'5cc9f70c2a594e27f23eca4af7d23eedfa58cc44a9849d0cee91fe887aafb24e'
'aff68f18a53e34c9778da238a2143e30dacb72d9009a219f3e5eb45cf1735e20'
'1d81571ea9be45f2d53aa21c920b93b6fdb1c9b17c6f9490ca94b1676ae27e13')
package() {
mkdir -p "${pkgdir}/var/lib/kometa/assets"
install -D -m 644 "${srcdir}/Kometa-${pkgver}/config/config.yml.template" "${pkgdir}/var/lib/kometa/config.yml"
mkdir -p "${pkgdir}/usr/lib/kometa"
cp -r "${srcdir}/Kometa-${pkgver}/"* "${pkgdir}/usr/lib/kometa"
#find "${pkgdir}/usr/lib/kometa" -type d -exec chmod 755 {} \;
#find "${pkgdir}/usr/lib/kometa" -type f -exec chmod 644 {} \;
chmod 755 "${pkgdir}/usr/lib/kometa/kometa.py"
install -D -m 644 "${srcdir}/kometa.service" "${pkgdir}/usr/lib/systemd/system/kometa.service"
install -D -m 644 "${srcdir}/kometa.sysusers" "${pkgdir}/usr/lib/sysusers.d/kometa.conf"
install -D -m 644 "${srcdir}/kometa.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/kometa.conf"
}
|