blob: 5f0f189d6c31d2a3363ceb6eee2f36ff506f90cd (
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
|
# Maintainer: Donald Webster <fryfrog@gmail.com>
# Maintainer: Zack Baldwin <zack@zackb.com>
pkgname=ombi
pkgver=3.0.3477
pkgrel=1
pkgdesc="Simple automated way for users to request new content for Plex"
arch=('x86_64' 'i686' 'armv7h')
url="https://github.com/tidusjar/Ombi"
license=('GPL2')
depends=('libunwind' 'openssl-1.0')
optdepends=('sonarr: TV daemon for usenet & torrents'
'radarr: Movie 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')
replaces=('plexrequests')
options=('staticlibs')
source=("${pkgname}.service"
"${pkgname}.sysusers"
"${pkgname}.tmpfiles")
source_x86_64=("${pkgname}-x86_64-${pkgver}.tar.gz::https://github.com/tidusjar/Ombi/releases/download/v${pkgver}/linux.tar.gz")
source_i686=("${pkgname}-i686-${pkgver}.tar.gz::https://github.com/tidusjar/Ombi/releases/download/v${pkgver}/linux.tar.gz")
source_armv7h=("${pkgname}-armv7h-${pkgver}.tar.gz::https://github.com/tidusjar/Ombi/releases/download/v${pkgver}/linux-arm.tar.gz")
noextract=("${pkgname}-x86_64-${pkgver}.tar.gz"
"${pkgname}-i686-${pkgver}.tar.gz"
"${pkgname}-armv7h-${pkgver}.tar.gz")
sha256sums=('d5893f6b665a0646054343a051e462a49569d51de224b45d3d2542b6c4e3d168'
'6efc381990e1113737686d4f61795095fa8edbc176daa877fd755f1ddb3a40fa'
'49fc5edca9d88fc9d6e9f0f4a6d707b072f32daa097305f0bf905dfff342f44a')
sha256sums_x86_64=('081c9d1d560b4487fece2fa46a87f4555d466e45dd7bf1a6f8fa4548efbbb840')
sha256sums_i686=('081c9d1d560b4487fece2fa46a87f4555d466e45dd7bf1a6f8fa4548efbbb840')
sha256sums_armv7h=('29562cd7509ca6cfec642649d0fdd24bc7318b949b040c3e0dfff7ea286790ab')
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 "${pkgname}-${CARCH}-${pkgver}.tar.gz"
}
package() {
# 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/"
find ${pkgdir}/usr/lib/ombi/ -type f -exec chmod 644 '{}' ';'
find ${pkgdir}/usr/lib/ombi/ -type d -exec chmod 755 '{}' ';'
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:
|