blob: bce76c541bbcc02f8052463edb27093a512355cd (
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
|
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname=vdr-epgsearch
pkgver=2.4.2
_vdrapi=2.6.7
pkgrel=4
epoch=1
pkgdesc="Searchtimer and replacement of the VDR program menu"
url="https://github.com/vdr-projects/vdr-plugin-epgsearch"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('gcc-libs' "vdr-api=${_vdrapi}")
optdepends=('msmtp: To send notification mails (Simpler replacement for sendmail)'
'ssmtp: To send notification mails (Another simpler replacement for sendmail)')
_plugname=${pkgname//vdr-/}
source=("$pkgname-$pkgver.tar.gz::https://github.com/vdr-projects/vdr-plugin-epgsearch/archive/refs/tags/v$pkgver.tar.gz"
"50-$_plugname.conf")
backup=("etc/vdr/conf.avail/50-conflictcheckonly.conf"
"etc/vdr/conf.avail/50-$_plugname.conf"
"etc/vdr/conf.avail/50-${_plugname}only.conf"
"etc/vdr/conf.avail/50-quick$_plugname.conf"
'var/lib/vdr/plugins/epgsearch/epgsearchcats.conf-epgdata'
'var/lib/vdr/plugins/epgsearch/epgsearchcats.conf-tvm2vdr-hoerzu'
'var/lib/vdr/plugins/epgsearch/epgsearchcats.conf-tvm2vdr-tvmovie'
'var/lib/vdr/plugins/epgsearch/epgsearchconflmail.templ'
'var/lib/vdr/plugins/epgsearch/epgsearchmenu.conf'
'var/lib/vdr/plugins/epgsearch/epgsearchupdmail-html.templ'
'var/lib/vdr/plugins/epgsearch/epgsearchupdmail.templ')
options=('!emptydirs')
sha256sums=('7c0a03c22fedbc73a34220da0edf3293a903185c412d5b20fb48d72f2e4fd118'
'f3f8c750a0313c01a4295d2249f030ee510b2e35137b1f2cdcaa39aa440a3a88')
prepare() {
cd "${srcdir}/vdr-plugin-$_plugname-$pkgver"
sed -i 's/^Menu/# Menu/g' conf/epgsearchmenu.conf
}
build() {
cd "${srcdir}/vdr-plugin-$_plugname-$pkgver"
make REGEXLIB='' #Empty REGEXLIB to force regex.h from glibc
}
package() {
cd "${srcdir}/vdr-plugin-$_plugname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
echo "[${_plugname}only]" > "$pkgdir/etc/vdr/conf.avail/50-${_plugname}only.conf"
echo "[conflictcheckonly]" > "$pkgdir/etc/vdr/conf.avail/50-conflictcheckonly.conf"
echo "[quick${_plugname}]" > "$pkgdir/etc/vdr/conf.avail/50-quick${_plugname}.conf"
chown -R 666:666 "$pkgdir/var/lib/vdr"
}
|