summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Serpieri2018-02-13 16:14:38 -0500
committerMichael Serpieri2018-02-13 16:14:38 -0500
commitd3ac9782934bfd604c41bc2b4e42892834e5346b (patch)
tree94e326b3a0d57007880e23b7e6e2a4694fab1db2
downloadaur-d3ac9782934bfd604c41bc2b4e42892834e5346b.tar.gz
initial - Kodi (garbear, retroplayer)
-rw-r--r--.SRCINFO141
-rw-r--r--PKGBUILD270
2 files changed, 411 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..aec684a02ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,141 @@
+pkgbase = kodi-gb-git
+ pkgver = 18.0.r48226.3837206eaa
+ pkgrel = 1
+ url = http://kodi.tv
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = afpfs-ng
+ makedepends = bluez-libs
+ makedepends = boost
+ makedepends = cmake
+ makedepends = curl
+ makedepends = cwiid
+ makedepends = doxygen
+ makedepends = git
+ makedepends = ffmpeg
+ makedepends = glew
+ makedepends = gperf
+ makedepends = hicolor-icon-theme
+ makedepends = jasper
+ makedepends = java-runtime
+ makedepends = libaacs
+ makedepends = libass
+ makedepends = libbluray
+ makedepends = libcdio
+ makedepends = libcec
+ makedepends = fmt
+ makedepends = libgl
+ makedepends = libmariadbclient
+ makedepends = libmicrohttpd
+ makedepends = libmodplug
+ makedepends = libmpeg2
+ makedepends = libnfs
+ makedepends = libplist
+ makedepends = libxrandr
+ makedepends = libxslt
+ makedepends = lzo
+ makedepends = mesa
+ makedepends = nasm
+ makedepends = nss-mdns
+ makedepends = python2-pillow
+ makedepends = python2-pybluez
+ makedepends = python2-simplejson
+ makedepends = rapidjson
+ makedepends = rtmpdump
+ makedepends = shairplay
+ makedepends = smbclient
+ makedepends = swig
+ makedepends = taglib
+ makedepends = tinyxml
+ makedepends = upower
+ source = xbmc::git+https://github.com/garbear/xbmc.git#branch=retroplayer-18alpha1
+ sha256sums = SKIP
+
+pkgname = kodi-gb-git
+ pkgdesc = A software media player and entertainment hub for digital media (retroplayer branch)
+ depends = bluez-libs
+ depends = desktop-file-utils
+ depends = ffmpeg
+ depends = glew
+ depends = hicolor-icon-theme
+ depends = libcdio
+ depends = libmariadbclient
+ depends = libmicrohttpd
+ depends = libxrandr
+ depends = libxslt
+ depends = lzo
+ depends = mesa
+ depends = python2-pillow
+ depends = python2-simplejson
+ depends = smbclient
+ depends = taglib
+ depends = tinyxml
+ depends = xorg-xdpyinfo
+ optdepends = gdb: for meaningful backtraces in case of trouble - STRONGLY RECOMMENDED
+ optdepends = afpfs-ng: Apple shares support
+ optdepends = bluez: Blutooth support
+ optdepends = python2-pybluez: Bluetooth support
+ optdepends = libnfs: NFS shares support
+ optdepends = libplist: AirPlay support
+ optdepends = libcec: Pulse-Eight USB-CEC adapter support
+ optdepends = lirc: Remote controller support
+ optdepends = lsb-release: log distro information in crashlog
+ optdepends = pulseaudio: PulseAudio support
+ optdepends = shairplay: AirPlay support
+ optdepends = unrar: Archives support
+ optdepends = unzip: Archives support
+ optdepends = upower: Display battery level
+ provides = kodi
+ provides = xbmc
+ conflicts = kodi
+ conflicts = kodi-git
+ conflicts = xbmc
+ replaces = xbmc-git
+ replaces = xbmc-svn
+
+pkgname = kodi-gb-eventclients-git
+ pkgdesc = Kodi Event Clients (retroplayer branch)
+ depends = cwiid
+ conflicts = kodi-eventclients
+ conflicts = kodi-eventclients-git
+
+pkgname = kodi-gb-tools-texturepacker-git
+ pkgdesc = Kodi Texturepacker tool (retroplayer branch)
+ depends = giflib
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = lzo
+ conflicts = kodi-tools-texturepacker-git
+
+pkgname = kodi-gb-dev-git
+ pkgdesc = Kodi dev files (retroplayer branch)
+ depends = kodi
+ provides = kodi-dev
+ conflicts = kodi-dev-git
+
+pkgname = kodi-gb-addon-peripheral-joystick-git
+ pkgdesc =
+ groups = kodi-addons
+ groups = kodi-addons-peripheral
+ depends = kodi
+
+pkgname = kodi-gb-addon-game-libretro-git
+ pkgdesc = libretro game addon for kodi
+ groups = kodi-addons
+ groups = kodi-addons-game
+ depends = kodi
+ provides = kodi-addon-game-libretro
+
+pkgname = kodi-gb-addon-game-libretro-snes9x2010-git
+ pkgdesc = libretro game addon for kodi - Snes9x Next. (Super Nintendo Entertainment System)
+ groups = kodi-addons
+ groups = kodi-addons-game
+ depends = kodi-addon-game-libretro
+
+pkgname = kodi-gb-addon-game-libretro-genplus-git
+ pkgdesc = libretro game addon for kodi - Genesis Plus GX. (Sega Master System/Sega Game Gear/Sega Mega Drive/Sega Genesis/Sega CD)
+ groups = kodi-addons
+ groups = kodi-addons-game
+ depends = kodi-addon-game-libretro
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8a21adc8677
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,270 @@
+# Maintainer: Michael Serpieri <mickybart@pygoscelis.org>
+# Contributor: Lenovsky <lenovsky@protonmail.ch>
+# Contributor: BlackIkeEagle < ike DOT devolder AT gmail DOT com >
+# Contributor: DonVla <donvla@users.sourceforge.net>
+# Contributor: Ulf Winkelvos <ulf [at] winkelvos [dot] de>
+# Contributor: Ralf Barth <archlinux dot org at haggy dot org>
+# Contributor: B & monty - Thanks for your hints :)
+# Contributor: marzoul
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Brad Fanella <bradfanella@archlinux.us>
+# Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com>
+# Contributor: Zeqadious <zeqadious.at.gmail.dot.com>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Contributor: Maxime Gauduin <alucryd@gmail.com>
+#
+# Original credits go to Edgar Hucek <gimli at dark-green dot com>
+# for his xbmc-vdpau-vdr PKGBUILD at https://archvdr.svn.sourceforge.net/svnroot/archvdr/trunk/archvdr/xbmc-vdpau-vdr/PKGBUILD
+
+pkgbase=kodi-gb-git
+pkgname=('kodi-gb-git' 'kodi-gb-eventclients-git' 'kodi-gb-tools-texturepacker-git' 'kodi-gb-dev-git'
+ 'kodi-gb-addon-peripheral-joystick-git'
+ 'kodi-gb-addon-game-libretro-git' 'kodi-gb-addon-game-libretro-snes9x2010-git' 'kodi-gb-addon-game-libretro-genplus-git')
+_gitname='xbmc'
+pkgver=18.0.r48226.3837206eaa
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://kodi.tv"
+license=('GPL2')
+makedepends=('afpfs-ng' 'bluez-libs' 'boost' 'cmake' 'curl' 'cwiid' 'doxygen' 'git' 'ffmpeg' 'glew'
+ 'gperf' 'hicolor-icon-theme' 'jasper' 'java-runtime' 'libaacs' 'libass' 'libbluray'
+ 'libcdio' 'libcec' 'fmt' 'libgl' 'libmariadbclient' 'libmicrohttpd' 'libmodplug'
+ 'libmpeg2' 'libnfs' 'libplist' 'libxrandr' 'libxslt' 'lzo' 'mesa' 'nasm' 'nss-mdns'
+ 'python2-pillow' 'python2-pybluez' 'python2-simplejson' 'rapidjson' 'rtmpdump'
+ 'shairplay' 'smbclient' 'swig' 'taglib' 'tinyxml' 'upower')
+source=("$_gitname::git+https://github.com/garbear/xbmc.git#branch=retroplayer-18alpha1")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ _major=$(grep 'VERSION_MAJOR' version.txt | sed 's/VERSION_MAJOR //')
+ _minor=$(grep 'VERSION_MINOR' version.txt | sed 's/VERSION_MINOR //')
+ _revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
+ echo "$_major.$_minor.$_revision"
+}
+
+prepare() {
+ [[ -d kodi-build ]] && rm -rf kodi-build
+ mkdir kodi-build
+
+ [[ -d kodi-addons-build ]] && rm -rf kodi-addons-build
+ mkdir kodi-addons-build
+
+ [[ -d kodi-addons-game-build ]] && rm -rf kodi-addons-game-build
+ mkdir kodi-addons-game-build
+}
+
+build() {
+ # main
+ cd kodi-build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DENABLE_EVENTCLIENTS=ON \
+ -DLIRC_DEVICE=/run/lirc/lircd \
+ -DENABLE_INTERNAL_FFMPEG="no" \
+ -DWITH_FFMPEG="yes" \
+ "../$_gitname"
+ make
+ make preinstall
+
+ # main addons
+ _addons="peripheral.joystick"
+
+ # - cleanup previous addons
+ [[ -d "$srcdir/$_gitname/cmake/addons/addons/" ]] && rm -rf "$srcdir/$_gitname/cmake/addons/addons/"
+
+ # - switch to xbmc bootstrap
+ echo "binary-addons https://github.com/xbmc/repo-binary-addons.git master" > "$srcdir/$_gitname/cmake/addons/bootstrap/repositories/binary-addons.txt"
+
+ # - build
+ cd ../kodi-addons-build
+ cmake \
+ -DADDONS_TO_BUILD="$_addons" \
+ -DCMAKE_INSTALL_PREFIX=addons/ \
+ -DPACKAGE_ZIP=1 \
+ "../$_gitname/cmake/addons"
+ make
+
+ # kodi-game addons
+ _addons="game.libretro game.libretro.snes9x2010 game.libretro.genplus"
+
+ # - cleanup previous addons
+ [[ -d "$srcdir/$_gitname/cmake/addons/addons/" ]] && rm -rf "$srcdir/$_gitname/cmake/addons/addons/"
+
+ # - switch to kodi-game bootstrap
+ echo "binary-addons https://github.com/kodi-game/repo-binary-addons retroplayer" > "$srcdir/$_gitname/cmake/addons/bootstrap/repositories/binary-addons.txt"
+
+ # - build
+ cd ../kodi-addons-game-build
+ cmake \
+ -DADDONS_TO_BUILD="$_addons" \
+ -DCMAKE_INSTALL_PREFIX=addons/ \
+ -DPACKAGE_ZIP=1 \
+ "../$_gitname/cmake/addons"
+ make
+}
+
+# kodi
+# components: kodi, kodi-bin
+
+package_kodi-gb-git() {
+ pkgdesc="A software media player and entertainment hub for digital media (retroplayer branch)"
+ depends=('bluez-libs' 'desktop-file-utils' 'ffmpeg' 'glew' 'hicolor-icon-theme' 'libcdio'
+ 'libmariadbclient' 'libmicrohttpd' 'libxrandr' 'libxslt' 'lzo' 'mesa' 'python2-pillow'
+ 'python2-simplejson' 'smbclient' 'taglib' 'tinyxml' 'xorg-xdpyinfo')
+ optdepends=('gdb: for meaningful backtraces in case of trouble - STRONGLY RECOMMENDED'
+ 'afpfs-ng: Apple shares support'
+ 'bluez: Blutooth support'
+ 'python2-pybluez: Bluetooth support'
+ 'libnfs: NFS shares support'
+ 'libplist: AirPlay support'
+ 'libcec: Pulse-Eight USB-CEC adapter support'
+ 'lirc: Remote controller support'
+ 'lsb-release: log distro information in crashlog'
+ 'pulseaudio: PulseAudio support'
+ 'shairplay: AirPlay support'
+ 'unrar: Archives support'
+ 'unzip: Archives support'
+ 'upower: Display battery level')
+ provides=('kodi' 'xbmc')
+ conflicts=('kodi' 'kodi-git' 'xbmc')
+ replaces=('xbmc-git' 'xbmc-svn')
+
+ _components=('kodi' 'kodi-bin')
+
+ cd kodi-build
+ # install eventclients
+ for _cmp in ${_components[@]}; do
+ DESTDIR="$pkgdir" /usr/bin/cmake \
+ -DCMAKE_INSTALL_COMPONENT="$_cmp" \
+ -P cmake_install.cmake
+ done
+
+ # Licenses
+ install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
+ for licensef in LICENSE.GPL copying.txt; do
+ mv "$pkgdir/usr/share/doc/kodi/$licensef" \
+ "$pkgdir/usr/share/licenses/$pkgname"
+ done
+
+ # python2 is being used
+ cd "$pkgdir"
+ grep -lR '#!.*python' * | while read file; do sed -s 's/\(#!.*python\)/\12/g' -i "$file"; done
+}
+
+# kodi-eventclients
+# components: kodi-eventclients-common kodi-eventclients-ps3 kodi-eventclients-wiiremote kodi-eventclients-xbmc-send
+
+package_kodi-gb-eventclients-git() {
+ pkgdesc="Kodi Event Clients (retroplayer branch)"
+ conflicts=('kodi-eventclients' 'kodi-eventclients-git')
+ depends=('cwiid')
+
+ _components=('kodi-eventclients-common' 'kodi-eventclients-ps3' 'kodi-eventclients-wiiremote'
+ 'kodi-eventclients-xbmc-send')
+
+ cd kodi-build
+ # install eventclients
+ for _cmp in ${_components[@]}; do
+ DESTDIR="$pkgdir" /usr/bin/cmake \
+ -DCMAKE_INSTALL_COMPONENT="$_cmp" \
+ -P cmake_install.cmake
+ done
+
+ # python2 is being used
+ cd "$pkgdir"
+ grep -lR '#!.*python' * | while read file; do sed -s 's/\(#!.*python\)/\12/g' -i "$file"; done
+}
+
+# kodi-tools-texturepacker
+# components: kodi-tools-texturepacker
+
+package_kodi-gb-tools-texturepacker-git() {
+ pkgdesc="Kodi Texturepacker tool (retroplayer branch)"
+ conflicts=('kodi-tools-texturepacker-git')
+ depends=('giflib' 'libjpeg-turbo' 'libpng' 'lzo')
+
+ _components=('kodi-tools-texturepacker')
+
+ cd kodi-build
+ # install eventclients
+ for _cmp in ${_components[@]}; do
+ DESTDIR="$pkgdir" /usr/bin/cmake \
+ -DCMAKE_INSTALL_COMPONENT="$_cmp" \
+ -P cmake_install.cmake
+ done
+}
+
+# kodi-dev
+# components: kodi-addon-dev kodi-audio-dev kodi-eventclients-dev kodi-game-dev kodi-inputstream-dev kodi-peripheral-dev kodi-pvr-dev kodi-screensaver-dev kodi-visualization-dev
+
+package_kodi-gb-dev-git() {
+ pkgdesc="Kodi dev files (retroplayer branch)"
+ conflicts=('kodi-dev-git')
+ depends=('kodi')
+ provides=('kodi-dev')
+
+ _components=('kodi-addon-dev' 'kodi-audio-dev' 'kodi-eventclients-dev' 'kodi-game-dev'
+ 'kodi-inputstream-dev' 'kodi-peripheral-dev' 'kodi-pvr-dev' 'kodi-screensaver-dev'
+ 'kodi-visualization-dev')
+
+ cd kodi-build
+ # install eventclients
+ for _cmp in ${_components[@]}; do
+ DESTDIR="$pkgdir" /usr/bin/cmake \
+ -DCMAKE_INSTALL_COMPONENT="$_cmp" \
+ -P cmake_install.cmake
+ done
+
+ # python2 is being used
+ cd "$pkgdir"
+ grep -lR '#!.*python' * | while read file; do sed -s 's/\(#!.*python\)/\12/g' -i "$file"; done
+}
+
+# kodi-gb-addon-peripheral-joystick-git
+package_kodi-gb-addon-peripheral-joystick-git() {
+ pkgdesc=""
+ depends=('kodi')
+ groups=('kodi-addons' 'kodi-addons-peripheral')
+
+ cd kodi-addons-build
+ mkdir -p "$pkgdir/usr/share/kodi/addons"
+
+ cp -r addons/peripheral.joystick "$pkgdir/usr/share/kodi/addons/"
+}
+
+# kodi-game
+package_kodi-gb-addon-game-libretro-git() {
+ pkgdesc="libretro game addon for kodi"
+ depends=('kodi')
+ groups=('kodi-addons' 'kodi-addons-game')
+ provides=('kodi-addon-game-libretro')
+
+ cd kodi-addons-game-build
+ mkdir -p "$pkgdir/usr/share/kodi/addons"
+
+ cp -r addons/game.libretro "$pkgdir/usr/share/kodi/addons/"
+}
+
+package_kodi-gb-addon-game-libretro-snes9x2010-git() {
+ pkgdesc="libretro game addon for kodi - Snes9x Next. (Super Nintendo Entertainment System)"
+ depends=('kodi-addon-game-libretro')
+ groups=('kodi-addons' 'kodi-addons-game')
+
+ cd kodi-addons-game-build
+ mkdir -p "$pkgdir/usr/share/kodi/addons"
+
+ cp -r addons/game.libretro.snes9x2010 "$pkgdir/usr/share/kodi/addons/"
+}
+
+package_kodi-gb-addon-game-libretro-genplus-git() {
+ pkgdesc="libretro game addon for kodi - Genesis Plus GX. (Sega Master System/Sega Game Gear/Sega Mega Drive/Sega Genesis/Sega CD)"
+ depends=('kodi-addon-game-libretro')
+ groups=('kodi-addons' 'kodi-addons-game')
+
+ cd kodi-addons-game-build
+ mkdir -p "$pkgdir/usr/share/kodi/addons"
+
+ cp -r addons/game.libretro.genplus "$pkgdir/usr/share/kodi/addons/"
+}