summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ef4ba93416144e526266fc2a02385b59a1b98ef (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
# Maintainer: Francois Menning <f.menning@protonmail.com>
# Contributor: Michael Lass <bevan@bi-co.net>

_gitname=pvr.iptvsimple
pkgname=kodi-addon-pvr-iptvsimple-git
pkgver=r293.7578e0c319a6
pkgrel=2
pkgdesc="Kodi's IPTV Simple client addon."
url='https://github.com/kodi-pvr/pvr.iptvsimple'
license=('GPL3')
source=("${_gitname}::git+https://github.com/kodi-pvr/pvr.iptvsimple#branch=Leia")
sha256sums=('SKIP')
arch=('any')
depends=('kodi' 'p8-platform')
makedepends=('git' 'cmake' 'kodi-platform' 'kodi-dev' 'rapidxml')
conflicts=('kodi-addon-pvr-iptvsimple' 'kodi-pvr-addons')
provides=('kodi-addon-pvr-iptvsimple')

pkgver() {
  cd "${srcdir}/${_gitname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_gitname}"
  cmake \
    -DADDONS_TO_BUILD=pvr.iptvsimple \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_MODULE_PATH=/usr/lib/kodi
}

package() {
  cd "${srcdir}/${_gitname}"
  make prefix=/usr DESTDIR="$pkgdir" install
}