summaryrefslogtreecommitdiffstats
path: root/abs/extra/kodi-addon-pvr-mythtv/PKGBUILD
blob: 484b97d2fb780ba9fd8ef6dafd9b53f7862c6182 (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
# Maintainer: Jameson Pugh <imntreal@gmail.com>

pkgname=kodi-addon-pvr-mythtv
pkgver=5.10.6
_kodiver=18.1
_codename=Leia
pkgrel=1
pkgdesc='MythTV PVR client addon for Kodi'
arch=('armv7h' 'i686' 'x86_64')
url="http://janbar.github.io/pvr.mythtv/"
license=('GPL')
makedepends=('cmake' 'git')
depends=("kodi")
source=("https://github.com/janbar/pvr.mythtv/archive/${pkgver}-$_codename.tar.gz"
        "https://github.com/xbmc/xbmc/archive/${_kodiver}-$_codename.tar.gz")

build() {
  mkdir -p "pvr.mythtv-${pkgver}/build"
  cd "pvr.mythtv-${pkgver}/build"

  cmake \
    -DADDONS_TO_BUILD=pvr.mythtv \
    -DADDONS_SRC_PREFIX=../.. \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=./addons \
    ../../xbmc-${_kodiver}-$_codename/cmake/addons
  make
}

package() {
  cd "pvr.mythtv-${pkgver}/build/build/depends"
  install -d "${pkgdir}/usr/lib/kodi/addons/"
  cp -r ./lib/kodi/addons/pvr.mythtv "${pkgdir}/usr/lib/kodi/addons"
  install -d "${pkgdir}/usr/share/kodi/addons/"
  cp -r ./share/kodi/addons/pvr.mythtv "${pkgdir}/usr/share/kodi/addons"
}

# vim:set ts=2 sw=2 et:

md5sums=('a375711e6e34ef33cc8161059bb55f30'
         '02062e4de4e3e6d540793e211812ebf3')