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-05-12 10:10:12 +02:00
pkgver=2.3.18
2017-05-06 22:08:08 +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-03-25 17:41:39 +01:00
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/peak3d/inputstream.adaptive/archive/${pkgver}.tar.gz")
2019-05-12 10:10:12 +02:00
sha256sums=('11dab0e791c8fd6314adbf1bfb1b4f161889dd765c68d175bdebeb3e9b41b6c0')
2017-02-04 19:33:30 +01:00
build() {
2019-03-08 12:49:48 +01:00
cd "$srcdir/inputstream.adaptive-${pkgver}"
cmake -DCMAKE_INSTALL_PREFIX=/usr .
2017-02-04 19:33:30 +01:00
make
}
package() {
2019-03-08 12:49:48 +01:00
cd "$srcdir/inputstream.adaptive-${pkgver}"
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"
}