2019-03-08 12:59:06 +01:00
# Maintainer: Cedric Girard <cgirard.archlinux@valinor.fr>
2017-02-04 19:33:30 +01:00
# Contributor: kevku <kevku@gmx.com>
2019-03-08 12:59:06 +01:00
2017-02-04 19:33:30 +01:00
pkgname=kodi-addon-inputstream-adaptive
2019-09-03 13:48:55 +02:00
pkgver=2.4.2
2019-05-29 17:11:27 +02:00
_upstreamver=${pkgver}-Leia
2019-06-17 13:59:05 +02:00
pkgrel=1
2019-03-08 12:49:48 +01:00
pkgdesc="InputStream client for adaptive streams for Kodi 18+"
2017-02-04 19:33:30 +01:00
arch=('x86_64' 'i686')
2017-03-29 20:02:05 +02:00
url="https://github.com/peak3d/inputstream.adaptive"
2017-02-04 19:33:30 +01:00
license=('GPL2')
2019-03-08 12:59:06 +01:00
makedepends=('kodi-dev>=18' 'cmake')
2019-03-08 12:49:48 +01:00
depends=('kodi-platform')
2017-02-04 19:33:30 +01:00
conflicts=("${pkgname%-git}")
2019-05-29 17:11:27 +02:00
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/peak3d/inputstream.adaptive/archive/${_upstreamver}.tar.gz")
2019-09-03 13:48:55 +02:00
sha256sums=('e47263240ac9276546ead439ba14ee26c3f3b45f2882351a9081e5502e296329')
2017-02-04 19:33:30 +01:00
build() {
2019-05-29 17:11:27 +02:00
cd "$srcdir/inputstream.adaptive-${_upstreamver}"
2019-03-08 12:49:48 +01:00
cmake -DCMAKE_INSTALL_PREFIX=/usr .
2017-02-04 19:33:30 +01:00
make
}
package() {
2019-05-29 17:11:27 +02:00
cd "$srcdir/inputstream.adaptive-${_upstreamver}"
2017-02-04 19:33:30 +01:00
make DESTDIR="$pkgdir/" install
sed -i 's|special://home/cdm|/usr/lib/kodi/addons/inputstream.adaptive/lib|g' "$pkgdir/usr/share/kodi/addons/inputstream.adaptive/resources/settings.xml"
}