summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorc4tz2019-10-13 22:24:22 +0200
committerc4tz2019-10-13 22:24:22 +0200
commit4b9089a5d98d50dff6feb53b9a2052816503c3f2 (patch)
tree3389f15bcf83164dcbf1ed6283a534add53c6fe6
downloadaur-4b9089a5d98d50dff6feb53b9a2052816503c3f2.tar.gz
initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD47
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ced090be79f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = kodi-addon-inputstream-adaptive-any
+ pkgdesc = Inputstream adaptive without kodi-dev dependency, so it can be built on any architecture
+ pkgver = 2.4.2
+ pkgrel = 1
+ url = https://github.com/peak3d/inputstream.adaptive
+ arch = any
+ groups = kodi
+ license = GPL
+ makedepends = cmake
+ makedepends = git
+ depends = kodi
+ provides = kodi-addon-inputstream-adaptive-any
+ conflicts = kodi-addon-inputstream-adaptive
+ conflicts = kodi-addon-inputstream-adaptive-18
+ source = https://github.com/peak3d/inputstream.adaptive/archive/2.4.2-Leia.tar.gz
+ source = https://github.com/xbmc/xbmc/archive/18.4-Leia.tar.gz
+ sha256sums = e47263240ac9276546ead439ba14ee26c3f3b45f2882351a9081e5502e296329
+ sha256sums = bf2be186d8ae5b5377e43c06a538012bb9f51a0e98f8244b70a401006861d110
+
+pkgname = kodi-addon-inputstream-adaptive-any
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6696ad0151f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: c4tz
+pkgname=kodi-addon-inputstream-adaptive-any
+pkgver=2.4.2
+pkgrel=1
+pkgdesc="Inputstream adaptive without kodi-dev dependency, so it can be built on any architecture"
+_koditarget=Leia
+_gitname=inputstream.adaptive
+_kodiver=18.4
+arch=('any')
+url="https://github.com/peak3d/${_gitname}"
+license=('GPL')
+groups=('kodi')
+makedepends=('cmake' 'git')
+provides=("${pkgname}")
+conflicts=('kodi-addon-inputstream-adaptive' 'kodi-addon-inputstream-adaptive-18');
+depends=('kodi')
+source=("https://github.com/peak3d/${_gitname}/archive/${pkgver}-${_koditarget}.tar.gz"
+ "https://github.com/xbmc/xbmc/archive/${_kodiver}-${_koditarget}.tar.gz"
+)
+sha256sums=('e47263240ac9276546ead439ba14ee26c3f3b45f2882351a9081e5502e296329'
+ 'bf2be186d8ae5b5377e43c06a538012bb9f51a0e98f8244b70a401006861d110')
+
+prepare() {
+ cd xbmc-${_kodiver}-${_koditarget}
+}
+
+build() {
+ mkdir -p "${_gitname}-${pkgver}-${_koditarget}/build"
+ cd "${_gitname}-${pkgver}-${_koditarget}/build"
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=1 \
+ -DADDONS_TO_BUILD=${_gitname} \
+ -DADDONS_SRC_PREFIX=../.. \
+ ../../xbmc-${_kodiver}-${_koditarget}/cmake/addons
+ make
+}
+
+package() {
+ cd "${_gitname}-${pkgver}-${_koditarget}/build"
+ install -d "${pkgdir}/usr"
+ mv .install/lib "${pkgdir}/usr/"
+ mv .install/share "${pkgdir}/usr/"
+}