blob: 62fae80643083c78c73587b98991ddd0e6e13e40 (
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
|
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
# Maintainer: Manuel Reimer <manuel.reimer@gmx.de>
pkgname=vdr-markad
pkgver=3.6.0
pkgrel=1
_logover=ea2e182ec798375f3830f8b794e7408576f139ad
epoch=1
_vdrapi=2.6.7
pkgdesc="Plugin to mark advertisemets in recordings and optionally auto-cut"
url="https://github.com/kfb77/vdr-plugin-markad"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL-2.0-or-later')
depends=("vdr-api=${_vdrapi}" 'libavcodec.so' 'libavfilter.so' 'libavformat.so' 'libavutil.so' 'libswresample.so')
_plugname=${pkgname//vdr-/}
source=("$pkgname-$pkgver.tar.gz::https://github.com/kfb77/vdr-plugin-markad/archive/V$pkgver.tar.gz"
"$pkgname-logos-1.tar.gz::https://github.com/vdr-projects/vdr-plugin-markad/archive/$_logover.tar.gz")
backup=("etc/vdr/conf.avail/50-$_plugname.conf")
sha256sums=('79a213812807ccb9bc7eedebff01b28d98dc7eba959a0502b8a97218600eed1c'
'b2e58edae4899272a58c89d193089adf900e5098d57bf1fb449d4f308b61e9a8')
prepare() {
cd "${srcdir}/vdr-plugin-${_plugname}-$pkgver"
rm -rf "command/logos"
mv "${srcdir}/vdr-plugin-$_plugname-$_logover/command/logos" "command"
}
build() {
cd "${srcdir}/vdr-plugin-${_plugname}-$pkgver"
make
}
package() {
cd "${srcdir}/vdr-plugin-${_plugname}-$pkgver"
make DESTDIR="$pkgdir" install
# Move the logofiles to the right place and add a symlink to prevent patching.
mkdir -p "$pkgdir/usr/share"
mv "$pkgdir/var/lib/markad" "$pkgdir/usr/share/markad"
ln -s /usr/share/markad "$pkgdir/var/lib/markad"
install -Dm644 "plugin/contrib/$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
}
|