blob: 9df45c09aba76dd241ba2454e87934f35af2defe (
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
66
67
68
|
# Maintainer: Donald Webster <fryfrog@gmail.com>
# Maintainer: Zack Baldwin <zack@zackb.com>
pkgname=ombi-develop
pkgver=4.44.0
pkgrel=1
pkgdesc='Simple automated way for users to request new content for Plex'
arch=('x86_64' 'aarch64' 'armv7h')
url='https://github.com/Ombi-app/Ombi'
license=('GPL2')
depends=('libunwind' 'openssl' 'icu')
optdepends=('sonarr: TV daemon for usenet & torrents'
'radarr: Movie daemon for usenet & torrents (sonarr fork)'
'lidarr: Music daemon for usenet & torrents (sonarr fork)'
'sickrage: TV daemon for usenet & torrents (sickbeard fork)'
'couchpotato: Movie daemon for usenet & torrents'
'plex-media-server: Media server'
'plex-media-server-plexpass: Media server (plexpass version)'
'emby-server: Media server')
backup=('var/lib/ombi/appsettings.json')
provides=('ombi')
conflicts=('ombi')
options=('!strip' 'staticlibs')
source=("ombi.service"
"ombi.sysusers"
"ombi.tmpfiles")
source_x86_64=("ombi-x86_64-${pkgver}.tar.gz::https://github.com/Ombi-app/Ombi/releases/download/v${pkgver}/linux-x64.tar.gz")
source_armv7h=("ombi-armv7h-${pkgver}.tar.gz::https://github.com/Ombi-app/Ombi/releases/download/v${pkgver}/linux-arm.tar.gz")
source_aarch64=("ombi-aarch64-${pkgver}.tar.gz::https://github.com/Ombi-app/Ombi/releases/download/v${pkgver}/linux-arm64.tar.gz")
noextract=("ombi-x86_64-${pkgver}.tar.gz"
"ombi-i686-${pkgver}.tar.gz"
"ombi-armv7h-${pkgver}.tar.gz")
sha256sums=('263c0f3bce912441c8473203096958c8037e577df879403f6f93ac9317cee185'
'6efc381990e1113737686d4f61795095fa8edbc176daa877fd755f1ddb3a40fa'
'49fc5edca9d88fc9d6e9f0f4a6d707b072f32daa097305f0bf905dfff342f44a')
sha256sums_x86_64=('4afd624bc02c6d251debdfcd1c0f5444a727649e5a15cad91a6e723e034e13a9')
sha256sums_aarch64=('ebfa1e51ed29def9c27ad2ee2913f8bc6b68e61ad9a765329e6ae22fb3414e03')
sha256sums_armv7h=('5c226bdb7207dc106f93c85bc7c45535d22dff5517941b487c343c9f6255b1d4')
prepare() {
# The source is packaged w/o a sub directory, so create our own and
# extract to it. Arm package has a different name too.
mkdir -p "${srcdir}/ombi"
bsdtar -x -C "${srcdir}/ombi" -f "ombi-${CARCH}-${pkgver}.tar.gz"
}
package() {
# Copy the default appsettings.json
install -d -m 755 "${pkgdir}/var/lib/ombi"
install -D -m 644 "${srcdir}/ombi/appsettings.json" "${pkgdir}/var/lib/ombi/"
#install -D -m 644 "${srcdir}/ombi/HealthCheck.css" "${pkgdir}/var/lib/ombi/"
# Copy in files and then fix permissions
install -d -m 755 "${pkgdir}/usr/lib/ombi"
cp -dpr --no-preserve=ownership "${srcdir}/ombi/"* "${pkgdir}/usr/lib/ombi/"
chmod -R a=,a+rX,u+w ${pkgdir}/usr/lib/ombi/
chmod 755 ${pkgdir}/usr/lib/ombi/Ombi
install -D -m 644 "${srcdir}/ombi.service" "${pkgdir}/usr/lib/systemd/system/ombi.service"
install -D -m 644 "${srcdir}/ombi.sysusers" "${pkgdir}/usr/lib/sysusers.d/ombi.conf"
install -D -m 644 "${srcdir}/ombi.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/ombi.conf"
}
# vim:set ts=2 sw=2 et:
|