blob: cee5f2d8bd8b437ee6f52235f299edd7d4138f0c (
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
|
# Maintainer: Westin Miller <equinox.aur@gmail.com>
# Contributor: Michael Lass <bevan@bi-co.net>
pkgname=kodi-addon-pvr-mythtv-git
pkgver=r543.fd91be1
pkgrel=1
API=16
if [ -z "$API" ]; then
error "No API Version Defined, defaulting to 16. 15 = Isengard, 16 = Jarvis, 99 = git master"
fi
API=${API:-16}
_branch=$(
case "${API}" in
15) echo "Isengard";;
16) echo "Jarvis";;
99) echo "master";;
*) error "Unknown API version.";;
esac
)
pkgdesc='MythTV PVR client addon for Kodi'
arch=('armv7h' 'i686' 'x86_64')
url="https://github.com/kodi-pvr/pvr.hts"
license=('GPL')
makedepends=('cmake' 'git' 'kodi-platform')
if [ "$API" -eq "99" ]; then
depends=("kodi-git")
else
depends=("kodi>=$API.0" "kodi<$[$API+1].0")
fi
provides=('kodi-addon-pvr-mythtv')
conflicts=('kodi-addon-pvr-mythtv' 'kodi-pvr-addons')
source=("${pkgname}::git+https://github.com/kodi-pvr/pvr.mythtv.git#branch=${_branch}"
'p8-platform.patch')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd kodi-addon-pvr-mythtv-git/
patch -p1 -i ${srcdir}/p8-platform.patch
cd ..
echo "API Version $API"
echo "Branch version $_branch"
mkdir -p "$pkgname/build"
cd "$pkgname/build"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package() {
cd "$pkgname/build"
make DESTDIR="$pkgdir" install
}
md5sums=('SKIP'
'a3cf865a74564f1c07b16c20265174d2')
|