blob: c35e6a6e9d149f0f822e1ad1b8417bb9f367f12d (
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
|
# Maintainer: thepasto <thepasto@gmail.com>
pkgname=kodi-addon-pvr-iptvsimple
pkgver=7.6.4
pkgrel=2
pkgdesc='IPTV Simple PVR client addon for Kodi'
_koditarget=Matrix
_gitname=pvr.iptvsimple
_kodiver=19.1
arch=('armv6h' 'armv7h' 'i686' 'x86_64')
url="https://github.com/kodi-pvr/${_gitname}"
license=('GPL')
groups=('kodi')
makedepends=('cmake' 'kodi-platform' 'git')
conflicts=('kodi-addon-pvr-iptvsimple-git');
depends=('kodi')
source=("https://github.com/kodi-pvr/${_gitname}/archive/${pkgver}-${_koditarget}.tar.gz"
"https://github.com/xbmc/xbmc/archive/${_kodiver}-${_koditarget}.tar.gz"
)
sha256sums=('1310806ac4fd8c6e72020042e62bde8c9175e65015c4fddb82312cf32c53bf63'
'195a916a32057e259e6f42b49ba8f07cc6253460018851a52deb058ae938c58c'
)
prepare() {
cd xbmc-${_kodiver}-${_koditarget}
#patch -p1 cmake/scripts/common/HandleDepends.cmake ${srcdir}/8f714dcc7f1a1dfa9b57ef18c3f4accc62cb0652.diff
#sed -i "s|-p1 -i|--binary -p1 -i|" cmake/scripts/common/HandleDepends.cmake
#sed -i 's/GIT_SHALLOW 1/GIT_SHALLOW ""/g' cmake/scripts/common/HandleDepends.cmake
}
build() {
mkdir -p "pvr.iptvsimple-${pkgver}-${_koditarget}/build"
cd "pvr.iptvsimple-${pkgver}-${_koditarget}/build"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=1 \
-DADDONS_TO_BUILD=pvr.iptvsimple \
-DADDONS_SRC_PREFIX=../.. \
../../xbmc-${_kodiver}-${_koditarget}/cmake/addons
make
}
package() {
cd "pvr.iptvsimple-${pkgver}-${_koditarget}/build"
install -d "${pkgdir}/usr"
mv .install/lib "${pkgdir}/usr/"
mv .install/share "${pkgdir}/usr/"
}
|