archrelease: copy trunk to community-any
[ArchLinux/community.git] / kodi-addon-inputstream-adaptive / trunk / PKGBUILD
blob83b7ef6abea6ae708db33195ebbfd027c3320594
1 # Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
2 # Contributor: Cedric Girard <cgirard.archlinux@valinor.fr>
3 # Contributor: kevku <kevku@gmx.com>
5 pkgname=kodi-addon-inputstream-adaptive
6 pkgver=20.3.6
7 _codename=Nexus
8 pkgrel=1
9 pkgdesc="InputStream client for adaptive streams for Kodi 18+"
10 arch=('x86_64')
11 url="https://github.com/peak3d/inputstream.adaptive"
12 license=('GPL2')
13 groups=('kodi-addons' 'kodi-addons-inputstream')
14 makedepends=('cmake' 'kodi-dev' 'gtest')
15 options=(!lto)
17 _bento4_version="1.6.0-639-5"
19 source=("$pkgname-$pkgver.tar.gz::https://github.com/peak3d/inputstream.adaptive/archive/$pkgver-$_codename.tar.gz"
20         "$pkgname-bento4-$_bento4_version.tar.gz::https://github.com/xbmc/Bento4/archive/refs/tags/$_bento4_version-$_codename.tar.gz")
21 noextract=("$pkgname-bento4-$_bento4_version.tar.gz")
22 sha512sums=('010af7abfeeed375d4c3457f5d7a9aa848edbf247427b72f64f1f4e26870ad39ec4a9b1e6bc9479ce41dc01779f9a7d0bdbb8f005f7e8afde9ea59f9e31d879d'
23             '8628c6b7f9cdd16fb2fb92848ce3248559e5160e2bb6d19da23634340e69c533b14775def77e897f1f030bedb9a0caa54d0645a3b39a22514b4ab844b63203aa')
25 build() {
26     cd "inputstream.adaptive-$pkgver-$_codename"
27     cmake \
28         -DCMAKE_INSTALL_PREFIX=/usr \
29         -DCMAKE_BUILD_TYPE=Release \
30         -DBUILD_SHARED_LIBS=1 \
31         -DUSE_LTO=1 \
32         -DENABLE_INTERNAL_BENTO4=1 \
33         -DBENTO4_URL="$srcdir/$pkgname-bento4-$_bento4_version.tar.gz" \
34         .
35     make
38 package() {
39     depends=('kodi' 'kodi-platform')
40     cd "inputstream.adaptive-$pkgver-$_codename"
41     make DESTDIR="$pkgdir/" install