blob: f3e48d8d63ff82d0223dd4a12186ddd51e5020cd (
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-matrix-addon-inputstream-adaptive-git
pkgver=r1057.1ab359a
pkgrel=1
pkgdesc="InputStream client for adaptive streams for Kodi 19 Matrix"
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 debug strip)
# kodi 19
source=("$pkgname::git+https://github.com/xbmc/inputstream.adaptive.git#branch=Matrix"
"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
}
package() {
cd "$srcdir/$pkgname/$pkgname-build"
make DESTDIR="$pkgdir/" install
}
|