From 04b6b07e61a553b96fcaff9049a477335cf13f76 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Wed, 11 Jan 2017 01:57:27 -0500 Subject: [PATCH] Add kodi-addon-pvr-hts-git --- src/kodi-addon-pvr-hts-git/.SRCINFO | 24 +++++++++++ src/kodi-addon-pvr-hts-git/PKGBUILD | 63 +++++++++++++++++++++++++++ src/kodi-platform-git/.SRCINFO | 22 ++++++++++ src/kodi-platform-git/PKGBUILD | 67 +++++++++++++++++++++++++++++ src/libplatform-legacy/.SRCINFO | 19 ++++++++ src/libplatform-legacy/PKGBUILD | 34 +++++++++++++++ 6 files changed, 229 insertions(+) create mode 100644 src/kodi-addon-pvr-hts-git/.SRCINFO create mode 100644 src/kodi-addon-pvr-hts-git/PKGBUILD create mode 100644 src/kodi-platform-git/.SRCINFO create mode 100644 src/kodi-platform-git/PKGBUILD create mode 100644 src/libplatform-legacy/.SRCINFO create mode 100644 src/libplatform-legacy/PKGBUILD diff --git a/src/kodi-addon-pvr-hts-git/.SRCINFO b/src/kodi-addon-pvr-hts-git/.SRCINFO new file mode 100644 index 0000000..f91e53a --- /dev/null +++ b/src/kodi-addon-pvr-hts-git/.SRCINFO @@ -0,0 +1,24 @@ +# Generated by mksrcinfo v8 +# Mon Jan 9 18:34:43 UTC 2017 +pkgbase = kodi-addon-pvr-hts-git + pkgdesc = Tvheadend HTSP PVR client addon for Kodi + pkgver = r510.9261047 + pkgrel = 1 + url = https://github.com/kodi-pvr/pvr.hts + arch = armv7h + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + makedepends = git + makedepends = kodi-platform-git + depends = kodi + depends = libplatform-legacy + provides = kodi-addon-pvr-hts + conflicts = kodi-addon-pvr-hts + conflicts = kodi-pvr-addons + source = kodi-addon-pvr-hts-git::git+https://github.com/kodi-pvr/pvr.hts.git#branch=Jarvis + md5sums = SKIP + +pkgname = kodi-addon-pvr-hts-git + diff --git a/src/kodi-addon-pvr-hts-git/PKGBUILD b/src/kodi-addon-pvr-hts-git/PKGBUILD new file mode 100644 index 0000000..34ba178 --- /dev/null +++ b/src/kodi-addon-pvr-hts-git/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Michael Lass + +# This PKGBUILD is maintained on github: +# https://github.com/michaellass/AUR + +############################################################################### +# INSTRUCTIONS # +# ------------ # +# # +# API changes between different Kodi versions make it necessary to specify # +# the version of Kodi you want to build this package for. You can choose # +# between Isengard (15), Jarvis (16) and git master (99). Do so in the # +# following line. # +############################################################################### + +API=16 + +pkgname=kodi-addon-pvr-hts-git +pkgver=r510.9261047 +pkgrel=1 +pkgdesc='Tvheadend HTSP PVR client addon for Kodi' +arch=('armv7h' 'i686' 'x86_64') +url="https://github.com/kodi-pvr/pvr.hts" +license=('GPL') +makedepends=('cmake' 'git' 'kodi-platform-git') +depends=('kodi') +provides=('kodi-addon-pvr-hts') +conflicts=('kodi-addon-pvr-hts' 'kodi-pvr-addons') +source=("${pkgname}::git+https://github.com/kodi-pvr/pvr.hts.git") +md5sums=('SKIP') + +case "$API" in + 15) depends+=('libplatform-legacy') + source[0]="${pkgname}::git+https://github.com/kodi-pvr/pvr.hts.git#branch=Isengard" ;; + 16) depends+=('libplatform-legacy') + source[0]="${pkgname}::git+https://github.com/kodi-pvr/pvr.hts.git#branch=Jarvis" ;; + 17) depends+=('p8-platform') + source[0]="${pkgname}::git+https://github.com/kodi-pvr/pvr.hts.git#branch=Krypton" ;; + 99) depends+=('p8-platform') ;; + *) error "Unknown API version. Follow instructions in PKGBUILD." && false +esac + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + mkdir -p "$pkgname/build" + cd "$pkgname/build" + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \ + -DCMAKE_BUILD_TYPE=Release \ + .. + make +} + +package() { + cd "$pkgname/build" + make DESTDIR="$pkgdir" install +} diff --git a/src/kodi-platform-git/.SRCINFO b/src/kodi-platform-git/.SRCINFO new file mode 100644 index 0000000..20b92ee --- /dev/null +++ b/src/kodi-platform-git/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Tue Feb 23 23:00:57 UTC 2016 +pkgbase = kodi-platform-git + pkgdesc = Kodi platform support library + pkgver = r38.15edaf7 + pkgrel = 1 + url = https://github.com/xbmc/kodi-platform + arch = armv7h + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + makedepends = git + depends = kodi + depends = libplatform-legacy + provides = kodi-platform + conflicts = kodi-platform + source = kodi-platform-git::git+https://github.com/xbmc/kodi-platform.git#commit=15edaf78d + md5sums = SKIP + +pkgname = kodi-platform-git + diff --git a/src/kodi-platform-git/PKGBUILD b/src/kodi-platform-git/PKGBUILD new file mode 100644 index 0000000..007416b --- /dev/null +++ b/src/kodi-platform-git/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Michael Lass + +# This PKGBUILD is maintained on github: +# https://github.com/michaellass/AUR + +############################################################################### +# INSTRUCTIONS # +# ------------ # +# # +# API changes between different Kodi versions make it necessary to specify # +# the version of Kodi you want to build this package for. You can choose # +# between Isengard (15), Jarvis (16) and git master (99). Do so in the # +# following line. # +############################################################################### + +API=16 + +pkgname=kodi-platform-git +pkgver=r38.15edaf7 +pkgrel=1 +pkgdesc='Kodi platform support library' +arch=('armv7h' 'i686' 'x86_64') +url="https://github.com/xbmc/kodi-platform" +license=('GPL') +makedepends=('cmake' 'git') +depends=('kodi') +provides=('kodi-platform') +conflicts=('kodi-platform') +source=("${pkgname}::git+https://github.com/xbmc/kodi-platform.git") +md5sums=('SKIP') + +# Corresponding commit IDs are taken from +# https://github.com/xbmc/xbmc/blob/$BRANCH/project/cmake/addons/depends/common/kodi-platform/kodi-platform.txt +case "$API" in + 15) depends+=('libplatform-legacy') + source[0]="${pkgname}::git+https://github.com/xbmc/kodi-platform.git#commit=054a42f66" ;; + 16) depends+=('libplatform-legacy') + source[0]="${pkgname}::git+https://github.com/xbmc/kodi-platform.git#commit=15edaf78d" ;; + 17) depends+=('p8-platform') + source[0]="${pkgname}::git+https://github.com/xbmc/kodi-platform.git#commit=c8188d826" ;; + 99) depends+=('p8-platform') ;; + *) error "Unknown API version. Follow instructions in PKGBUILD." && false +esac + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + mkdir -p "$pkgname/build" + cd "$pkgname/build" + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_PREFIX_PATH=/usr/lib/kodi \ + .. + make +} + +package() { + cd "$pkgname/build" + make DESTDIR="$pkgdir" install +} diff --git a/src/libplatform-legacy/.SRCINFO b/src/libplatform-legacy/.SRCINFO new file mode 100644 index 0000000..ea499dc --- /dev/null +++ b/src/libplatform-legacy/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Tue Nov 15 18:01:54 UTC 2016 +pkgbase = libplatform-legacy + pkgdesc = Platform support library used by add-ons for Kodi up to Jarvis + pkgver = 1.0.10 + pkgrel = 2 + url = https://github.com/Pulse-Eight/platform + arch = armv6h + arch = armv7h + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + depends = gcc-libs + source = https://github.com/Pulse-Eight/platform/archive/1.0.10.tar.gz + sha256sums = 6ba3239cb1c0a5341efcf9488f4d3dfad8c26d6b2994b2b2247e5a61568ab5cd + +pkgname = libplatform-legacy + diff --git a/src/libplatform-legacy/PKGBUILD b/src/libplatform-legacy/PKGBUILD new file mode 100644 index 0000000..68cfcc9 --- /dev/null +++ b/src/libplatform-legacy/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Michael Lass +# Contributor: BlackIkeEagle +# Contributor: Cedric Girard + +# This PKGBUILD is maintained on github: +# https://github.com/michaellass/AUR + +pkgname=libplatform-legacy +pkgver=1.0.10 +pkgrel=2 +pkgdesc="Platform support library used by add-ons for Kodi up to Jarvis" +arch=('armv6h' 'armv7h' 'i686' 'x86_64') +url="https://github.com/Pulse-Eight/platform" +license=('GPL') +makedepends=('cmake') +depends=('gcc-libs') +source=(https://github.com/Pulse-Eight/platform/archive/${pkgver}.tar.gz) +sha256sums=('6ba3239cb1c0a5341efcf9488f4d3dfad8c26d6b2994b2b2247e5a61568ab5cd') + +build() { + cd "$srcdir"/platform-${pkgver} + cmake . \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=1 \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib + make +} + +package() { + cd "$srcdir"/platform-${pkgver} + make DESTDIR="$pkgdir/" install +}