summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e097bd6b1da377394a442f8d0e02e761860f3d09 (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
# Maintainer: Daniel Albers <daniel@lbe.rs>
# https://github.com/AlD/archlinux/tree/master/pkgbuilds/kodi-addon-pvr-hts

pkgname=kodi-addon-pvr-hts
pkgbase=${pkgname}
_gitname=pvr.hts
pkgver=21.2.2

_gitver=branch=Omega
pkgrel=1
pkgdesc='Tvheadend HTSP PVR client addon for Kodi'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/kodi-pvr/$_gitname"
license=('GPL')
groups=('kodi-addons')
makedepends=('cmake' 'kodi-platform' 'git' 'kodi-dev>=21')
depends=('kodi' 'p8-platform')
source=("git+https://github.com/kodi-pvr/${_gitname}.git#${_gitver}")
md5sums=('SKIP')

_prefix='/usr'

build() {
  cd "$srcdir/$_gitname"
  cmake -S . -B build/ \
    -DCMAKE_INSTALL_PREFIX=$_prefix \
    -DCMAKE_BUILD_TYPE=Release
  cmake --build build/
}

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