summaryrefslogtreecommitdiff
path: root/libre/kodi/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2019-08-26 13:40:22 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2019-08-26 13:40:22 -0500
commitf80b9ca3c5da8eee5522a4193c299967ab33c58a (patch)
treeb42d003280a97bbe6e209b20a876e1876c258996 /libre/kodi/PKGBUILD
parent789583921dc6533bba822c4bd6b67d0b590b2ff5 (diff)
downloadabslibre-f80b9ca3c5da8eee5522a4193c299967ab33c58a.tar.gz
abslibre-f80b9ca3c5da8eee5522a4193c299967ab33c58a.tar.bz2
abslibre-f80b9ca3c5da8eee5522a4193c299967ab33c58a.zip
kodi-18.3-1.par1: updating version
Diffstat (limited to 'libre/kodi/PKGBUILD')
-rw-r--r--libre/kodi/PKGBUILD256
1 files changed, 171 insertions, 85 deletions
diff --git a/libre/kodi/PKGBUILD b/libre/kodi/PKGBUILD
index e4a17a80f..933cd2232 100644
--- a/libre/kodi/PKGBUILD
+++ b/libre/kodi/PKGBUILD
@@ -1,5 +1,4 @@
# vim:set ts=2 sw=2 et:
-# $Id: PKGBUILD 217763 2017-03-20 20:27:16Z idevolder $
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer (Arch): BlackIkeEagle < ike DOT devolder AT gmail DOT com >
# Contributor (Arch): graysky <graysky AT archlinux DOT us>
@@ -23,12 +22,15 @@
_pkgbase=kodi-libre
pkgbase=kodi
-pkgname=kodi
-pkgver=17.6
-_codename=Krypton
-pkgrel=5.parabola3
-arch=('i686' 'x86_64' 'armv7h')
-url="http://kodi.tv"
+pkgname=(
+ 'kodi' 'kodi-bin' 'kodi-wayland' 'kodi-gbm'
+)
+pkgver=18.3
+pkgrel=1
+pkgrel+=.par1
+arch=('x86_64')
+arch+=('i686' 'armv7h')
+url="https://kodi.tv"
license=('GPL2')
# Attention!
@@ -37,125 +39,161 @@ makedepends_i686=('libvdpau')
makedepends_x86_64=('libvdpau')
makedepends=(
'afpfs-ng' 'bluez-libs' 'cmake' 'curl' 'doxygen' 'glew'
- 'gperf' 'hicolor-icon-theme' 'jasper' 'java-runtime' 'libaacs' 'libass'
- 'libbluray' 'libcdio' 'libcec' 'libgl' 'libmariadbclient' 'libmicrohttpd'
- 'libmodplug' 'libmpeg2' 'libnfs' 'libplist' 'libpulse' 'libssh' 'libva'
- 'libxrandr' 'libxslt' 'lzo' 'mesa' 'nasm' 'nss-mdns'
- 'python2-pillow' 'python2-pybluez' 'python2-simplejson' 'rtmpdump'
- 'shairplay' 'smbclient' 'speex' 'swig' 'taglib' 'tinyxml' 'unzip' 'upower'
- 'yajl' 'zip' 'giflib'
+ 'gperf' 'hicolor-icon-theme' 'java-runtime' 'libaacs' 'libass'
+ 'libbluray' 'libcdio' 'libcec' 'libgl' 'mariadb-libs' 'libmicrohttpd'
+ 'libmodplug' 'libmpeg2' 'libnfs' 'libplist' 'libpulse' 'libva'
+ 'libvdpau' 'libxrandr' 'libxslt' 'lirc' 'lzo' 'mesa' 'nasm'
+ 'python2-pycryptodome' 'python2-pillow' 'python2-pybluez' 'python2-simplejson'
+ 'shairplay' 'smbclient' 'taglib' 'tinyxml' 'swig'
+ 'upower' 'giflib' 'rapidjson' 'ghostscript'
+ # wayland
+ 'wayland-protocols' 'waylandpp' 'libxkbcommon'
+ # gbm
+ 'libinput'
+ 'ffmpeg' 'flatbuffers' 'fmt'
+)
+
+_codename=Leia
+
+_libdvdcss_version="1.4.2-$_codename-Beta-5"
+_libdvdnav_version="6.0.0-$_codename-Alpha-3"
+_libdvdread_version="6.0.0-$_codename-Alpha-3"
+#_ffmpeg_version="4.0.3-$_codename-18.2"
+#_fmt_version="5.1.0"
+_crossguid_version="8f399e8bd4"
+_fstrcmp_version="0.7.D001"
+#_flatbuffers_version="1.9.0"
+source=(
+ "$pkgbase-$pkgver-$_codename.tar.gz::https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz"
+ "$pkgbase-libdvdcss-$_libdvdcss_version.tar.gz::https://github.com/xbmc/libdvdcss/archive/$_libdvdcss_version.tar.gz"
+ "$pkgbase-libdvdnav-$_libdvdnav_version.tar.gz::https://github.com/xbmc/libdvdnav/archive/$_libdvdnav_version.tar.gz"
+ "$pkgbase-libdvdread-$_libdvdread_version.tar.gz::https://github.com/xbmc/libdvdread/archive/$_libdvdread_version.tar.gz"
+# "$pkgbase-ffmpeg-$_ffmpeg_version.tar.gz::https://github.com/xbmc/FFmpeg/archive/$_ffmpeg_version.tar.gz"
+# "$pkgbase-fmt-$_fmt_version.tar.gz::http://mirrors.kodi.tv/build-deps/sources/fmt-$_fmt_version.tar.gz"
+ "$pkgbase-crossguid-$_crossguid_version.tar.gz::http://mirrors.kodi.tv/build-deps/sources/crossguid-$_crossguid_version.tar.gz"
+ "$pkgbase-fstrcmp-$_fstrcmp_version.tar.gz::http://mirrors.kodi.tv/build-deps/sources/fstrcmp-$_fstrcmp_version.tar.gz"
+# "$pkgbase-flatbuffers-$_flatbuffers_version.tar.gz::http://mirrors.kodi.tv/build-deps/sources/flatbuffers-$_flatbuffers_version.tar.gz"
+ 'libre.patch'
)
-_libdvdcss_commit=2f12236bc1c92f73c21e973363f79eb300de603f
-_libdvdnav_commit=981488f7f27554b103cca10c1fbeba027396c94a
-_libdvdread_commit=17d99db97e7b8f23077b342369d3c22a6250affd
-_ffmpeg_version="3.1.11-$_codename-17.5"
-_crossguid=8f399e8bd4
-mksource=("$pkgbase-$pkgver-$_codename.tar.gz::https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz")
-source=("https://repo.parabola.nu/other/$_pkgbase/$_pkgbase-$pkgver-$_codename.tar.gz"
- "$pkgbase-libdvdcss-$_libdvdcss_commit.tar.gz::https://github.com/xbmc/libdvdcss/archive/$_libdvdcss_commit.tar.gz"
- "$pkgbase-libdvdnav-$_libdvdnav_commit.tar.gz::https://github.com/xbmc/libdvdnav/archive/$_libdvdnav_commit.tar.gz"
- "$pkgbase-libdvdread-$_libdvdread_commit.tar.gz::https://github.com/xbmc/libdvdread/archive/$_libdvdread_commit.tar.gz"
- "$pkgbase-ffmpeg-$_ffmpeg_version.tar.gz::https://github.com/xbmc/FFmpeg/archive/$_ffmpeg_version.tar.gz"
- "crossguid-${_crossguid}.tar.gz::http://mirrors.kodi.tv/build-deps/sources/crossguid-${_crossguid}.tar.gz"
- 'fix-python-lib-path.patch'
- 'kodi-use-external-libraries.patch'
- 'libre.patch')
noextract=(
"$pkgbase-libdvdcss-$_libdvdcss_commit.tar.gz"
"$pkgbase-libdvdnav-$_libdvdnav_commit.tar.gz"
"$pkgbase-libdvdread-$_libdvdread_commit.tar.gz"
- "$pkgbase-ffmpeg-$_ffmpeg_version.tar.gz"
+# "$pkgbase-ffmpeg-$_ffmpeg_version.tar.gz"
+# "$pkgbase-fmt-$_fmt_version.tar.gz"
+ "$pkgbase-crossguid-$_crossguid_version.tar.gz"
+ "$pkgbase-fstrcmp-$_fstrcmp_version.tar.gz"
+# "$pkgbase-flatbuffers-$_flatbuffers_version.tar.gz"
)
-mksha512sums=('1f1ba91e6129ab423f9ad47b63d7bb75775dbf18638a96413a572aaa790f4f0d738ca35486513e158a7f55d501f78f08dd9d68aabe2fbb80a729c6091b264111')
-sha512sums=('2b9ed2b4b6999253004f029a22d71145f6c1e89fc86b2219ecb56feb0043ee2499c288745b5a5f95e9f152ef8ae8d5b5d0b16587d9ccef12e82ed477472a0105'
- '12ba7aa653fcb26d5336bf2a8110c924d634cec79f684bbf19dc38ea33f69fb68c22c97f4c09e5ca7c35f95f6c324a6d70ccc2c501a99122a9321cafd33b2cd9'
- '005355da5e3d34f69737f7c3fe7884e82ffdc8f654f337e97d4a4d1e486c9f346f63b4dee74de2765e7a8d94925de5d25c3c82da732d2e8d4f58fcfeb9dd2586'
- 'e59ae0bfdc62698e407e3d70503c6a7c5e308545c9dae7843e25db3b5b62d9b26256be77ef4e884263add6b4abec3438c324bfd5715f6ca2ce7fa5962d43a6c2'
- 'b28bb6970c6767213f34e5f4f3e48ad5219a6c668a5264ff7de0a42712cb7393f389ddd88f56785a2dc8089f8231ae5fd05adfa10dbf15ea3e0ad7bc2ccd4d73'
+sha512sums=('4e898e28238dcbc67e106c5a0ef88bd6a82f8c0ad00e77e3ddbe2da6181b37d9ca1ba6bda57206223cfa119c5291edb4410d3e773d97b5ab67660e49929437ec'
+ '5185dbdbeb1bd13ea9d8723f1f4ab599d6f3102f5ba1096cd085aa1cda252c045f327c719227bba8e1b742352ade5e335106c8d0c1637a5a6b93ce661620dd7e'
+ '11c93eaacd156f8fd7dec7c43d366438b201f31ad55b2870463a9e286912b6ada08882319a021fb7992190f87b909a49f2b83e0321cc17aedc29f7fe5898fa72'
+ 'b3419ba0a1a2dd70f1bb6236afdfe1c6e88c9ad4264198b289e3bba9375e077cecf7f89848c7b09debaa445327f3507101f3d157e692f7a7163b2bb52643e1e7'
+# 'b4d4bf16f05b953ba81769446c8fd90246e1919b9ef671fb212008151c83d8445e4123ad37c352aa6243074962832e817749d2de318eb721d5bb5d655fd77ab2'
+# 'b759a718353254fa8cd981e483bf01a45af0fc76901216404ace5e47f5d3edf43d42422184e5413c221e49832322fdf60d1860e8ec87349c674511064b31e5d6'
'2682d63609d3dcdfcd8136be632e45df26ad88ce93b9c49745cf728bbd2e6254a7b05c8b059ab581d532372e504206a525a52564b64d076dfdae9c965a09fd16'
- '0f41604e38648969572a66d1124d6e090c3bfca4f9d8ccabcd1806254c38b178ee08df35e1bbbd1228f820729df52353321b3257122af601c3233dbc6405c6d2'
- '8185721fb8a067861291ea1c96188af095fadb8ea66fd8452fc8fd50f94bb753c980fc962e9c476dfed5eb84c2a0fb8129cb49baec274a439716214fe011c5dc'
- 'e6397b3925b67f1c17699057feea3d258f7735829d87a2049a1f54026bfeb21b10a67750c667dc591f1dee342aa3381f0af70ceb98174b42488528101e251fa3')
-
-mksource() {
- cd "$srcdir/xbmc-$pkgver-$_codename"
-
- msg2 "remove nonfree unRAR utility files from the source"
- rm -rv lib/UnrarXLib
-}
+ 'aaeb0227afd5ada5955cbe6a565254ff88d2028d677d199c00e03b7cb5de1f2c69b18e6e8b032e452350a8eda7081807b01765adbeb8476eaf803d9de6e5509c'
+# '0ba07dbe5b2fde1d0a6e14ee26ee2816062541d934eda204b846a30c019362f2626761b628c900293928b9b546dba8ca477c13182e022c3e0e0a142fd67f0696'
+ '664167256a1d0ebadde7416ff57141532e47a6c18c4eb77a63a507deeed19af47027fee2098c3e43704c03ec897c5477641d22ea8ce728037d72a3eb8219b0a2')
prepare() {
- [[ -d kodi-build ]] && rm -rf kodi-build
- mkdir kodi-build
+ # force python 'binary' as python2
+ [[ -d "$srcdir/path" ]] && rm -rf "$srcdir/path"
+ mkdir "$srcdir/path"
+ ln -s /usr/bin/python2 "$srcdir/path/python"
+
+ [[ -d kodi-build-x11 ]] && rm -rf kodi-build-x11
+ mkdir kodi-build-x11
+ [[ -d kodi-build-wayland ]] && rm -rf kodi-build-wayland
+ mkdir kodi-build-wayland
+ [[ -d kodi-build-gbm ]] && rm -rf kodi-build-gbm
+ mkdir kodi-build-gbm
cd "xbmc-$pkgver-$_codename"
# patches
- patch -p1 -i "$srcdir/fix-python-lib-path.patch"
- patch -p1 -i "$srcdir/kodi-use-external-libraries.patch"
- msg2 "Use addons.xml from Parabola server (without nonfree addons support) and remove nonfree stuff references"
- rm -v xbmc/filesystem/{Rar{Directory,File,Manager}.{cpp,h},test/TestRarFile.cpp}
+ msg2 "Use addons.xml from Parabola server (without nonfree addons support)"
patch -Np1 -i ../libre.patch
}
build() {
- cd kodi-build
+ export PATH="$srcdir/path:$PATH"
+
+ msg2 "building kodi-x11"
+ cd "$srcdir/kodi-build-x11"
local configure_options=(
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_LIBDIR=/usr/lib
-DENABLE_EVENTCLIENTS=ON
- -DLIRC_DEVICE=/run/lirc/lircd
-# -DENABLE_INTERNAL_FFMPEG="no"
-# -DWITH_FFMPEG="yes"
- -Dlibdvdcss_URL="$srcdir/$pkgbase-libdvdcss-$_libdvdcss_commit.tar.gz"
- -Dlibdvdnav_URL="$srcdir/$pkgbase-libdvdnav-$_libdvdnav_commit.tar.gz"
- -Dlibdvdread_URL="$srcdir/$pkgbase-libdvdread-$_libdvdread_commit.tar.gz"
- -DFFMPEG_URL="$srcdir/$pkgbase-ffmpeg-$_ffmpeg_version.tar.gz"
- -DCROSSGUID_URL="$srcdir/crossguid-${_crossguid}.tar.gz"
+ -DENABLE_INTERNAL_FFMPEG=OFF
+ -DENABLE_INTERNAL_FMT=OFF
+ -DENABLE_INTERNAL_CROSSGUID=ON
+ -DENABLE_INTERNAL_FSTRCMP=ON
+ -DENABLE_INTERNAL_FLATBUFFERS=OFF
+ -Dlibdvdcss_URL="$srcdir/$pkgbase-libdvdcss-$_libdvdcss_version.tar.gz"
+ -Dlibdvdnav_URL="$srcdir/$pkgbase-libdvdnav-$_libdvdnav_version.tar.gz"
+ -Dlibdvdread_URL="$srcdir/$pkgbase-libdvdread-$_libdvdread_version.tar.gz"
+# -DFFMPEG_URL="$srcdir/$pkgbase-ffmpeg-$_ffmpeg_version.tar.gz"
+# -DFMT_URL="$srcdir/$pkgbase-fmt-$_fmt_version.tar.gz"
+ -DCROSSGUID_URL="$srcdir/$pkgbase-crossguid-$_crossguid_version.tar.gz"
+ -DFSTRCMP_URL="$srcdir/$pkgbase-fstrcmp-$_fstrcmp_version.tar.gz"
+# -DFLATBUFFERS_URL="$srcdir/$pkgbase-flatbuffers-$_flatbuffers_version.tar.gz"
)
if [ "$CARCH" = "armv7h" ]; then
configure_options+=(-DENABLE_VAAPI=OFF)
fi
- cmake "${configure_options[@]}" ../"xbmc-$pkgver-$_codename"/project/cmake
+ cmake "${configure_options[@]}" \
+ ../"xbmc-$pkgver-$_codename"
+ make
+ make preinstall
+
+ msg2 "building kodi-wayland"
+ cd "$srcdir/kodi-build-wayland"
+ cmake "${configure_options[@]}" \
+ -DCORE_PLATFORM_NAME=wayland \
+ -DWAYLAND_RENDER_SYSTEM=gl ../"xbmc-$pkgver-$_codename"
+ make
+ make preinstall
+
+ msg2 "building kodi-gbm"
+ cd "$srcdir/kodi-build-gbm"
+ cmake "${configure_options[@]}" \
+ -DCORE_PLATFORM_NAME=gbm \
+ -DGBM_RENDER_SYSTEM=gles ../"xbmc-$pkgver-$_codename"
make
make preinstall
}
# kodi
-# components: kodi, kodi-bin
+# components: kodi
package_kodi() {
pkgdesc="A software media player and entertainment hub for digital media, without nonfree decompression engine for RAR archives and support for nonfree addons"
depends=(
- 'bluez-libs' 'desktop-file-utils' 'freetype2' 'fribidi'
- 'hicolor-icon-theme' 'libass' 'libcdio' 'libjpeg-turbo' 'libmariadbclient'
- 'libmicrohttpd' 'libpulse' 'libssh' 'libva' 'libvdpau' 'libxrandr'
- 'libxslt' 'lzo' 'mesa' 'python2-pillow' 'python2-simplejson' 'smbclient'
- 'speex' 'taglib' 'tinyxml' 'xorg-xdpyinfo' 'yajl'
+ 'desktop-file-utils' 'hicolor-icon-theme' 'mesa' 'python2-pycryptodome'
+ 'python2-pillow' 'python2-simplejson' 'xorg-xdpyinfo'
+ 'kodi-bin'
)
optdepends=(
'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'
- 'unzip: Archives support'
'upower: Display battery level'
)
- provides=('xbmc' 'xbmc-lts')
- conflicts=('xbmc' 'xbmc-lts')
- replaces=('xbmc' 'xbmc-lts')
+ provides=('xbmc')
+ conflicts=('xbmc')
+ replaces=('xbmc')
_components=(
'kodi'
'kodi-bin'
)
- cd kodi-build
+ export PATH="$srcdir/path:$PATH"
+
+ cd kodi-build-x11
# install eventclients
for _cmp in ${_components[@]}; do
DESTDIR="$pkgdir" /usr/bin/cmake \
@@ -163,14 +201,62 @@ package_kodi() {
-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
+ grep -lR '#!.*python' * | \
+ while read file; do sed -s 's/\(#!.*python\)/\12/g' -i "$file"; done
+
+ # remove x11 binaries
+ rm "$pkgdir/usr/lib/kodi/"{kodi-x11,kodi-xrandr}
+}
+
+# kodi-x11
+# components: kodi-bin
+
+package_kodi-bin() {
+ pkgdesc="x11 kodi binary"
+ depends=(
+ 'bluez-libs' 'curl' 'lcms2' 'libass' 'libbluray' 'libcdio' 'libcec'
+ 'libmicrohttpd' 'libnfs' 'libpulse' 'libva' 'libvdpau' 'libxrandr'
+ 'libxslt' 'lirc' 'mariadb-libs' 'python2' 'smbclient' 'taglib'
+ 'tinyxml' 'kodi'
+ )
+
+ cd kodi-build-x11
+ install -Dm755 kodi-x11 "$pkgdir/usr/lib/kodi/kodi-x11"
+ install -Dm755 kodi-xrandr "$pkgdir/usr/lib/kodi/kodi-xrandr"
+}
+
+# kodi-wayland
+# components: kodi-bin
+
+package_kodi-wayland() {
+ pkgdesc="wayland kodi binary"
+ provides=('kodi-bin')
+ depends=(
+ 'bluez-libs' 'curl' 'lcms2' 'libass' 'libbluray' 'libcdio' 'libcec'
+ 'libmicrohttpd' 'libnfs' 'libpulse' 'libva' 'libxkbcommon' 'libxslt'
+ 'lirc' 'mariadb-libs' 'python2' 'smbclient' 'taglib' 'tinyxml'
+ 'waylandpp' 'kodi'
+ )
+
+ cd kodi-build-wayland
+ install -Dm755 kodi-wayland "$pkgdir/usr/lib/kodi/kodi-wayland"
+}
+
+# kodi-gbm
+# components: kodi-bin
+
+package_kodi-gbm() {
+ pkgdesc="gbm kodi binary"
+ provides=('kodi-bin')
+ depends=(
+ 'bluez-libs' 'curl' 'lcms2' 'libass' 'libbluray' 'libcdio' 'libcec'
+ 'libinput' 'libmicrohttpd' 'libnfs' 'libpulse' 'libva' 'libxkbcommon'
+ 'libxslt' 'lirc' 'mariadb-libs' 'python2' 'smbclient' 'taglib'
+ 'tinyxml' 'kodi'
+ )
+
+ cd kodi-build-gbm
+ install -Dm755 kodi-gbm "$pkgdir/usr/lib/kodi/kodi-gbm"
}