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-04-17 08:29:02 +02:00
pkgver=2.3.17
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-04-17 08:29:02 +02:00
sha256sums=('39746955c301c67ad3613254979f792a0eb29c0c109e35c1b54ac928c3fb8f3c')
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"
}