blob: d21fe42efc17e32c959f7642acc12f0071925c36 (
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
|
# Maintainer: Faruk Dikcizgi <boogiepop@gmx.de>
# Contributor: kevku <kevku@gmx.com>
pkgname=kodi-nexus-addon-inputstream-adaptive-git
pkgver=r1435.7b27a86
pkgrel=1
pkgdesc="InputStream client for adaptive streams for Kodi 20 Nexus"
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h')
url="https://github.com/xbmc/inputstream.adaptive"
license=('GPL2')
depends=('kodi' 'expat')
makedepends=('kodi-dev' 'cmake' 'git')
provides=('kodi-addon-inputstream-adaptive')
conflicts=('kodi-addon-inputstream-adaptive')
options=(!lto strip)
# kodi 20
source=("$pkgname::git+https://github.com/xbmc/inputstream.adaptive.git#branch=Nexus"
"xbmc-bento4::git+https://github.com/xbmc/Bento4.git#branch=release/v1.6.0-639-kodi")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
[[ -d "$srcdir/$pkgname/$pkgname-build" ]] && rm -r "$srcdir/$pkgname/$pkgname-build"
mkdir -p "$srcdir/$pkgname/$pkgname-build"
cd "$srcdir/xbmc-bento4"
git archive --format tar.gz -o "$srcdir/xbmc-bento4.tar.gz" HEAD .
}
build() {
cd "$srcdir/$pkgname/$pkgname-build"
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=1 \
-DBUILD_TESTING=0 \
-DENABLE_INTERNAL_BENTO4=ON \
-DBENTO4_URL="$srcdir/xbmc-bento4.tar.gz" \
-DUSE_LTO=1
make ${MAKEFLAGS}
}
package() {
cd "$srcdir/$pkgname/$pkgname-build"
make DESTDIR="$pkgdir/" install
}
|