summaryrefslogtreecommitdiffstats
path: root/abs/extra/kodi-addon-pvr-mythtv/PKGBUILD
blob: d5353384f1a814f35f2eb310085b29a900d15d32 (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: dhead666 <myfoolishgames@gmail.com>
# https://github.com/dhead666/archlinux-pkgbuilds
#
# package version generated with # git log -1 --date=short --format="%cd.%h" | tr -d '-'

pkgname=kodi-addon-pvr-mythtv
_gitname=pvr.mythtv
pkgver=20150719.538e24d
_gitver=538e24d18bdfeef785b7b6d41f934bceafe3cf34
pkgrel=2
pkgdesc='MythTV PVR client addon for Kodi'
arch=('i686' 'x86_64')
url="https://github.com/kodi-pvr/$_gitname"
license=('GPL')
groups=('kodi-addons')
makedepends=('cmake' 'kodi-platform-git' 'libplatform')
depends=('kodi>=15.0')
provides=('kodi-pvr-addons')
replaces=('kodi-pvr-addons')
source=("https://github.com/kodi-pvr/$_gitname/archive/$_gitver.tar.gz")
md5sums=('SKIP')

_prefix='/usr'

build() {
  msg "Starting make..."

  cd "$srcdir/$_gitname-$_gitver"
  mkdir -p build && pushd build
  cmake \
    -DCMAKE_INSTALL_PREFIX=$_prefix \
    -DCMAKE_BUILD_TYPE=Release \
    ..
  make
  popd
}

package() {
  cd "$srcdir/$_gitname-$_gitver/build"
  make DESTDIR="$pkgdir" install
}