2017-01-15 17:29:58 +00:00
|
|
|
# Contributor graysky <graysky AT archlinux DOT org>
|
|
|
|
# Contributor BlackIkeEagle < ike DOT devolder AT gmail DOT com >
|
2015-03-31 05:40:41 +00:00
|
|
|
# Contributor Oleg Rakhmanov <oleg [at] archlinuxarm [dot] com>
|
2012-09-20 14:27:56 +00:00
|
|
|
# Contributor tomasgroth at yahoo.dk
|
|
|
|
# Contributor WarheadsSE <max@warheads.net>
|
2015-12-06 14:56:10 +00:00
|
|
|
# Contributor Adrian Fedoreanu <adrian [dot] fedoreanu [at] gmail [dot] com>
|
2013-06-12 04:52:38 +00:00
|
|
|
|
2015-02-05 00:16:53 +00:00
|
|
|
buildarch=20
|
2012-09-20 14:27:56 +00:00
|
|
|
|
2015-03-31 05:40:41 +00:00
|
|
|
_prefix=/usr
|
|
|
|
|
|
|
|
pkgbase=kodi-rbp-git
|
2017-01-15 17:29:58 +00:00
|
|
|
_suffix=rbp-git
|
|
|
|
pkgname=("kodi-$_suffix" "kodi-eventclients-$_suffix" "kodi-tools-texturepacker-$_suffix" "kodi-dev-$_suffix")
|
2017-03-06 22:47:06 +00:00
|
|
|
pkgver=17.1rc1.20170223
|
|
|
|
_tag=17.1rc1-Krypton
|
2017-01-28 01:40:04 +00:00
|
|
|
pkgrel=1
|
2015-03-31 05:40:41 +00:00
|
|
|
arch=('armv6h' 'armv7h')
|
2014-11-19 05:48:23 +00:00
|
|
|
url="http://kodi.tv"
|
2015-03-31 05:40:41 +00:00
|
|
|
license=('GPL2')
|
2017-03-06 22:47:06 +00:00
|
|
|
makedepends=('hicolor-icon-theme' 'fribidi' 'lzo' 'smbclient' 'libtiff' 'libva' 'libpng' 'libcdio'
|
2015-03-31 05:40:41 +00:00
|
|
|
'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd'
|
|
|
|
'sdl_image' 'python2' 'python2-pillow' 'python2-pybluez' 'python2-simplejson' 'libass'
|
|
|
|
'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'xorg-xdpyinfo' 'libbluray'
|
|
|
|
'libnfs' 'afpfs-ng' 'avahi' 'bluez-libs' 'tinyxml' 'raspberrypi-firmware' 'libcec-rpi'
|
2016-05-10 18:29:54 +00:00
|
|
|
'libplist' 'swig' 'taglib' 'libxslt' 'shairplay' 'boost' 'cmake' 'gperf' 'nasm' 'zip'
|
2017-01-28 01:40:04 +00:00
|
|
|
'upower' 'git' 'autoconf' 'java-environment' 'libcrossguid-git' 'dcadec' 'libpulse' 'cwiid')
|
2016-11-05 07:22:38 +00:00
|
|
|
source=("xbmc-$_tag.tar.gz::https://github.com/xbmc/xbmc/archive/$_tag.tar.gz"
|
2015-11-20 12:06:38 +00:00
|
|
|
'kodi.service'
|
2016-11-01 07:29:16 +00:00
|
|
|
'99-kodi.rules'
|
2016-11-24 05:42:20 +00:00
|
|
|
'https://github.com/popcornmix/xbmc/commit/0c320b6cdd4fb409be45008e6b9042463d54b742.patch'
|
|
|
|
'https://github.com/popcornmix/xbmc/commit/4d983105d7fd65b1d92f2ae2602e6e1cdcaddbe0.patch'
|
2016-09-17 23:47:54 +00:00
|
|
|
'polkit.rules')
|
2017-03-06 22:47:06 +00:00
|
|
|
sha256sums=('a614128c065d561fccd4167f25eddbad3875328f1e81f627ffe3d0b17958aa07'
|
2015-03-31 05:40:41 +00:00
|
|
|
'5235068d5800d69f0287087815990e7fe8d6572733d60c8800546d35f608e87f'
|
2016-11-22 08:08:59 +00:00
|
|
|
'b31570f95654434b01fd8531612fbb6be77cbc1c519dd60f92feae26eb160f3d'
|
2016-11-24 05:42:20 +00:00
|
|
|
'813f8c622c341eefb33774115199d2abe9c189cf2ce52e79719dbd42d48a1274'
|
|
|
|
'd830c010ead152bc9a9ba6b812c985d6e649bda7480fec9b3c451f5ea03ba792'
|
2016-09-17 23:47:54 +00:00
|
|
|
'9ea592205023ba861603d74b63cdb73126c56372a366dc4cb7beb379073cbb96')
|
|
|
|
|
2013-04-08 18:51:48 +00:00
|
|
|
prepare() {
|
2016-11-05 07:22:38 +00:00
|
|
|
cd "$srcdir/xbmc-$_tag"
|
2015-03-31 05:40:41 +00:00
|
|
|
|
2016-11-24 05:42:20 +00:00
|
|
|
# ffmpeg: Automatic switch to software decode for GMC with more than one warp point
|
|
|
|
patch -Np1 -i "$srcdir/0c320b6cdd4fb409be45008e6b9042463d54b742.patch"
|
2017-03-06 22:47:06 +00:00
|
|
|
# fix for files with GMC
|
2016-11-24 05:42:20 +00:00
|
|
|
patch -Np1 -i "$srcdir/4d983105d7fd65b1d92f2ae2602e6e1cdcaddbe0.patch"
|
|
|
|
|
2017-01-15 17:29:58 +00:00
|
|
|
[[ -d kodi-build ]] && rm -rf kodi-build
|
|
|
|
mkdir $srcdir/kodi-build
|
2013-04-08 18:51:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-01-15 17:29:58 +00:00
|
|
|
cd "kodi-build"
|
|
|
|
|
|
|
|
# -DCPU=arm1176jzf-s for rpi1
|
|
|
|
# -DCPU=cortex-a7 for rpi2
|
|
|
|
# -DCPU=cortex-a53 for rpi3
|
|
|
|
|
|
|
|
[[ $CARCH == "armv6h" ]] && _CPU=arm1176jzf-s
|
|
|
|
[[ $CARCH == "armv7h" ]] && _CPU=cortex-a7
|
|
|
|
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DCMAKE_PREFIX_PATH=/opt/vc \
|
|
|
|
-DCORE_SYSTEM_NAME=rbpi \
|
|
|
|
-DWITH_CPU="$_CPU" \
|
|
|
|
-DENABLE_EVENTCLIENTS=ON \
|
|
|
|
-DENABLE_OPENGL=OFF \
|
|
|
|
-DENABLE_X11=OFF \
|
|
|
|
-DENABLE_VAAPI=OFF \
|
|
|
|
-DENABLE_VDPAU=OFF \
|
|
|
|
-DLIRC_DEVICE=/run/lirc/lircd \
|
|
|
|
../"xbmc-$_tag"/project/cmake
|
|
|
|
|
|
|
|
make VERBOSE=1
|
|
|
|
make preinstall
|
2012-09-20 14:27:56 +00:00
|
|
|
}
|
|
|
|
|
2015-03-31 05:40:41 +00:00
|
|
|
package_kodi-rbp-git() {
|
|
|
|
pkgdesc="A software media player and entertainment hub for digital media (Raspberry Pi)"
|
2017-03-06 22:47:06 +00:00
|
|
|
depends=('hicolor-icon-theme' 'fribidi' 'lzo' 'smbclient' 'libtiff' 'libva' 'libpng' 'libcdio'
|
2015-03-31 05:40:41 +00:00
|
|
|
'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd'
|
2017-03-06 22:47:06 +00:00
|
|
|
'sdl_image' 'python2' 'python2-pillow' 'python2-simplejson' 'libass'
|
2017-01-21 20:44:10 +00:00
|
|
|
'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'xorg-xdpyinfo' 'libbluray'
|
2017-01-17 01:44:19 +00:00
|
|
|
'avahi' 'bluez-libs' 'tinyxml' 'raspberrypi-firmware' 'libpulse'
|
2017-01-21 20:44:10 +00:00
|
|
|
'libplist' 'swig' 'taglib' 'libxslt' 'libcrossguid-git')
|
2015-03-31 05:40:41 +00:00
|
|
|
|
|
|
|
optdepends=(
|
2017-01-21 20:44:10 +00:00
|
|
|
'afpfs-ng: Apple airplay and AFP share support'
|
2017-03-06 22:47:06 +00:00
|
|
|
'python2-pybluez: Bluetooth support'
|
2017-01-10 08:19:50 +00:00
|
|
|
'libcec-rpi: Pulse-Eight USB-CEC adapter support'
|
2017-01-15 17:29:58 +00:00
|
|
|
'libnfs: NFS shares support'
|
2015-03-31 05:40:41 +00:00
|
|
|
'lirc: remote controller support'
|
2017-01-15 17:29:58 +00:00
|
|
|
'lsb-release: log distro information in crashlog'
|
2015-03-31 05:40:41 +00:00
|
|
|
'polkit: permissions for automounting external drives and power management functionality'
|
2017-01-21 20:44:10 +00:00
|
|
|
'shairplay: limited Apple airplay support'
|
2015-03-31 05:40:41 +00:00
|
|
|
'unrar: access compressed files without unpacking them'
|
2017-01-15 17:29:58 +00:00
|
|
|
'unzip: access compressed files without unpacking them'
|
|
|
|
'upower: used to trigger power management functionality')
|
2015-03-31 05:40:41 +00:00
|
|
|
|
2016-11-05 07:22:38 +00:00
|
|
|
install='kodi.install'
|
2015-03-31 05:40:41 +00:00
|
|
|
provides=('xbmc' 'kodi')
|
2016-05-10 18:29:54 +00:00
|
|
|
conflicts=('xbmc' 'kodi' 'arm-mem-git' 'shairplay-git')
|
2015-03-31 05:40:41 +00:00
|
|
|
replaces=('xbmc-rbp-git')
|
2017-03-06 22:47:06 +00:00
|
|
|
_components=('kodi' 'kodi-bin')
|
2017-01-15 17:29:58 +00:00
|
|
|
|
|
|
|
cd kodi-build
|
|
|
|
# install eventclients
|
|
|
|
for _cmp in ${_components[@]}; do
|
|
|
|
DESTDIR="$pkgdir" /usr/bin/cmake \
|
|
|
|
-DCMAKE_INSTALL_COMPONENT="$_cmp" \
|
|
|
|
-P cmake_install.cmake
|
|
|
|
done
|
2012-09-20 14:27:56 +00:00
|
|
|
|
|
|
|
# Licenses
|
2017-01-15 17:29:58 +00:00
|
|
|
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
|
2012-09-20 14:27:56 +00:00
|
|
|
for licensef in LICENSE.GPL copying.txt; do
|
2017-01-15 17:29:58 +00:00
|
|
|
mv ${pkgdir}/usr/share/doc/kodi/${licensef} \
|
|
|
|
${pkgdir}/usr/share/licenses/${pkgname}
|
2012-09-20 14:27:56 +00:00
|
|
|
done
|
|
|
|
|
2017-01-15 17:29:58 +00:00
|
|
|
# python2 is being used
|
|
|
|
cd "$pkgdir"
|
|
|
|
grep -lR '#!.*python' * | while read file; do sed -s 's/\(#!.*python\)/\12/g' -i "$file"; done
|
|
|
|
|
2016-11-05 07:22:38 +00:00
|
|
|
install -Dm0644 "$srcdir/kodi.service" "$pkgdir/usr/lib/systemd/system/kodi.service"
|
|
|
|
install -Dm0644 "$srcdir/polkit.rules" "$pkgdir/usr/share/polkit-1/rules.d/10-kodi.rules"
|
|
|
|
chmod 0700 "$pkgdir/usr/share/polkit-1/rules.d/"
|
2016-11-01 07:29:16 +00:00
|
|
|
|
|
|
|
# fix permissions necessary for accelerated video playback
|
2016-11-05 07:22:38 +00:00
|
|
|
install -Dm0644 "$srcdir/99-kodi.rules" "$pkgdir/etc/udev/rules.d/99-kodi.rules"
|
2012-09-20 14:27:56 +00:00
|
|
|
}
|
2015-03-31 05:40:41 +00:00
|
|
|
|
2017-01-15 17:29:58 +00:00
|
|
|
package_kodi-eventclients-rbp-git() {
|
|
|
|
pkgdesc="Kodi Event Clients (master branch)"
|
2017-03-06 22:47:06 +00:00
|
|
|
provides=('kodi-eventclients')
|
2015-03-31 05:40:41 +00:00
|
|
|
conflicts=('kodi-eventclients')
|
|
|
|
depends=('cwiid')
|
2017-03-06 22:47:06 +00:00
|
|
|
_components=('kodi-eventclients-common'
|
2017-01-15 17:29:58 +00:00
|
|
|
'kodi-eventclients-ps3'
|
2017-03-06 22:47:06 +00:00
|
|
|
'kodi-eventclients-wiiremote'
|
|
|
|
'kodi-eventclients-xbmc-send' )
|
2017-01-15 17:29:58 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
package_kodi-tools-texturepacker-rbp-git() {
|
|
|
|
pkgdesc="Kodi Texturepacker tool (master branch)"
|
|
|
|
depends=('libpng' 'giflib' 'libjpeg-turbo' 'lzo')
|
2017-03-06 22:47:06 +00:00
|
|
|
_components=('kodi-tools-texturepacker')
|
2017-01-15 17:29:58 +00:00
|
|
|
|
|
|
|
cd kodi-build
|
|
|
|
# install eventclients
|
|
|
|
for _cmp in ${_components[@]}; do
|
|
|
|
DESTDIR="$pkgdir" /usr/bin/cmake \
|
|
|
|
-DCMAKE_INSTALL_COMPONENT="$_cmp" \
|
|
|
|
-P cmake_install.cmake
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package_kodi-dev-rbp-git() {
|
|
|
|
pkgdesc="Kodi dev files (master branch)"
|
|
|
|
depends=('kodi')
|
|
|
|
|
2017-03-06 22:47:06 +00:00
|
|
|
_components=('kodi-addon-dev'
|
2017-01-15 17:29:58 +00:00
|
|
|
'kodi-audio-dev'
|
|
|
|
'kodi-eventclients-dev'
|
|
|
|
'kodi-game-dev'
|
|
|
|
'kodi-inputstream-dev'
|
|
|
|
'kodi-peripheral-dev'
|
|
|
|
'kodi-pvr-dev'
|
|
|
|
'kodi-screensaver-dev'
|
2017-03-06 22:47:06 +00:00
|
|
|
'kodi-visualization-dev')
|
2017-01-15 17:29:58 +00:00
|
|
|
|
|
|
|
cd kodi-build
|
|
|
|
# install eventclients
|
|
|
|
for _cmp in ${_components[@]}; do
|
|
|
|
DESTDIR="$pkgdir" /usr/bin/cmake \
|
|
|
|
-DCMAKE_INSTALL_COMPONENT="$_cmp" \
|
|
|
|
-P cmake_install.cmake
|
|
|
|
done
|
2015-03-31 05:40:41 +00:00
|
|
|
|
2017-01-15 17:29:58 +00:00
|
|
|
# python2 is being used
|
|
|
|
cd "$pkgdir"
|
|
|
|
grep -lR '#!.*python' * | while read file; do sed -s 's/\(#!.*python\)/\12/g' -i "$file"; done
|
2015-03-31 05:40:41 +00:00
|
|
|
}
|