blob: 4207e8f221090cc07bdc1bdd8d8df1939fe5ed72 (
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
|
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname=kodi-addon-pvr-vdr-vnsi
pkgver=20.4.1
_gitver=4864f348c4399dbeeda8271df09d09e0fdad2ce5
pkgrel=1
url="https://github.com/kodi-pvr/pvr.vdr.vnsi"
arch=('x86_64' 'i686' 'armv6h' 'armv7h')
license=('GPL2')
pkgdesc="PVR add-on for XBMC to add VDR as a TV/PVR Backend"
depends=('kodi')
makedepends=('cmake' 'git' 'kodi-dev' 'kodi-platform')
source=("git+https://github.com/kodi-pvr/pvr.vdr.vnsi.git#commit=$_gitver")
sha256sums=('511e1204f2660994f4b718a89c462b06869df1fda1707051fb188c0c4c452dae')
pkgver() {
cd "${srcdir}/pvr.vdr.vnsi/pvr.vdr.vnsi"
grep ' version' addon.xml.in | cut -d'"' -f2
}
build() {
mkdir -p "${srcdir}/pvr.vdr.vnsi/build"
cd "${srcdir}/pvr.vdr.vnsi/build"
cmake -DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package() {
cd "${srcdir}/pvr.vdr.vnsi/build"
make DESTDIR="${pkgdir}" install
cp -r "$srcdir"/pvr.vdr.vnsi/pvr.vdr.vnsi/* "$pkgdir/usr/lib/kodi/addons/pvr.vdr.vnsi"
}
|