summaryrefslogtreecommitdiffstats
path: root/abs/extra/xbmc/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-10-02 01:02:49 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-10-02 01:02:49 (GMT)
commit9f562b5cd50ca3e346d413ec5f2ff46a46aaa8d1 (patch)
tree6d3005076bb4ca9c9c92958af151a60a2388a103 /abs/extra/xbmc/PKGBUILD
parent41970f7206ead1525f6b4c5df98ab51bf0dc3404 (diff)
downloadlinhes_pkgbuild-9f562b5cd50ca3e346d413ec5f2ff46a46aaa8d1.zip
linhes_pkgbuild-9f562b5cd50ca3e346d413ec5f2ff46a46aaa8d1.tar.gz
linhes_pkgbuild-9f562b5cd50ca3e346d413ec5f2ff46a46aaa8d1.tar.bz2
xbmc & xmbc-pvr-addons: update to 13.2. closes #974.
Diffstat (limited to 'abs/extra/xbmc/PKGBUILD')
-rw-r--r--abs/extra/xbmc/PKGBUILD99
1 files changed, 51 insertions, 48 deletions
diff --git a/abs/extra/xbmc/PKGBUILD b/abs/extra/xbmc/PKGBUILD
index 87a9e78..8e6cc91 100644
--- a/abs/extra/xbmc/PKGBUILD
+++ b/abs/extra/xbmc/PKGBUILD
@@ -4,49 +4,64 @@
# Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com>
# Contributor: Zeqadious <zeqadious.at.gmail.dot.com>
# Contributor: BlackIkeEagle < ike DOT devolder AT gmail DOT com >
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Contributor: Maxime Gauduin <alucryd@gmail.com>
_prefix=/usr
pkgname=xbmc
-pkgver=13.0
+pkgver=13.2
_codename=Gotham
-pkgrel=2
+pkgrel=4
pkgdesc="A software media player and entertainment hub for digital media"
arch=('i686' 'x86_64')
url="http://xbmc.org"
-license=('GPL' 'custom')
-depends=('hicolor-icon-theme' 'fribidi' 'lzo2' 'smbclient' 'libtiff' 'libva'
- 'libpng' 'libcdio' 'yajl' 'libmysqlclient' 'libjpeg-turbo' 'libsamplerate'
- 'glew' 'libssh' 'libmicrohttpd' 'libxrandr' 'sdl_mixer' 'sdl_image'
- 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump'
- 'unzip' 'mesa-demos' 'xorg-xdpyinfo' 'libbluray' 'libnfs' 'afpfs-ng'
- 'avahi' 'bluez-libs' 'tinyxml' 'libcap' 'swig' 'taglib'
- 'java-runtime-headless' 'glu' 'mesa' 'shairplay' 'libxslt' 'ffmpeg')
-makedepends=('boost' 'cmake' 'gperf' 'nasm' 'libxinerama' 'zip' 'libvdpau' 'libcec'
- 'udisks' 'upower' 'mesa' 'doxygen' 'swig' 'java-environment')
-optdepends=('libcec: support for Pulse-Eight USB-CEC adapter'
- 'lirc: remote controller support'
- 'udisks: automount external drives'
- 'upower: used to trigger power management functionality'
- 'unrar: access compressed files without unpacking them'
- 'xorg-xinit: autostart xbmc')
+license=('GPL2')
+depends=(
+'avahi' 'hicolor-icon-theme' 'lame' 'libass' 'libbluray' 'libcdio' 'libmad'
+'libmicrohttpd' 'libmodplug' 'libmpeg2' 'libmysqlclient'
+'libsamplerate' 'libssh' 'libva' 'libvdpau' 'libvorbis' 'libxrandr' 'libxslt'
+'lzo' 'mesa' 'mesa-demos' 'python2' 'python2-pillow' 'rtmpdump' 'sdl_image'
+'smbclient' 'taglib' 'tinyxml' 'unzip' 'xorg-xdpyinfo' 'yajl'
+)
+makedepends=(
+'afpfs-ng' 'libnfs' 'libplist' 'shairplay' 'libcec' 'boost' 'cmake' 'doxygen'
+'gperf' 'jasper' 'java-runtime-headless' 'nasm' 'swig' 'taglib' 'udisks'
+'zip'
+)
+optdepends=(
+'afpfs-ng: Apple File Protocol suport'
+'libnfs: NFS Share support'
+'libplist: AirPlay support'
+'shairplay: AirPlay support'
+'libcec: Pulse-Eight USB-CEC adapter support'
+'polkit: power management'
+'pulseaudio: for pulseaudio support'
+'lirc: remote controller support'
+'unrar: access compressed files without unpacking them'
+'udisks: automount external drives'
+'upower: display battery level'
+)
install="${pkgname}.install"
source=(
- "xbmc-$pkgver.tar.gz::https://github.com/xbmc/xbmc/archive/13.0-Gotham.tar.gz"
- "xbmc.service"
- "polkit.rules"
- "enable-external-ffmpeg.patch"
+ "xbmc-$pkgver-$_codename.tar.gz::https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz"
"xbmc.sh"
"xbmc_lib.conf"
- )
+)
+#sha256sums=(
+# 'acbf5dffa3034a3406240ee3cf81e721386cd383d23d056ddde1f769e050e585'
+#)
prepare() {
- cd "${srcdir}/xbmc-$pkgver-$_codename"
- patch -p1 -i ../enable-external-ffmpeg.patch
+ cd "$srcdir/xbmc-$pkgver-$_codename"
+
+ find -type f -name *.py -exec sed 's|^#!.*python$|#!/usr/bin/python2|' -i "{}" +
+ sed 's|^#!.*python$|#!/usr/bin/python2|' -i tools/depends/native/rpl-native/rpl
+ sed 's/python/python2/' -i tools/Linux/xbmc.sh.in
}
build() {
- cd "${srcdir}/xbmc-$pkgver-$_codename"
+ cd "$srcdir/xbmc-$pkgver-$_codename"
# Bootstrapping XBMC
./bootstrap
@@ -83,32 +98,26 @@ build() {
--enable-udev \
--enable-libusb \
--enable-libcec \
- --enable-external-libraries
-
+ --with-lirc-device=/run/lirc/lircd
# Now (finally) build
make
}
package() {
- cd "${srcdir}/xbmc-$pkgver-$_codename"
+ cd "$srcdir/xbmc-$pkgver-$_codename"
# Running make install
- make DESTDIR="${pkgdir}" install
-
- # run feh with python2
- sed -i -e 's/python/python2/g' ${pkgdir}${_prefix}/bin/xbmc
+ make DESTDIR="$pkgdir" install
# Tools
- msg2 "Tools"
- install -D -m 0755 "${srcdir}/xbmc-$pkgver-$_codename/xbmc-xrandr" "${pkgdir}${_prefix}/share/xbmc/xbmc-xrandr"
- install -D -m 0755 "${srcdir}/xbmc-$pkgver-$_codename/tools/TexturePacker/TexturePacker" "${pkgdir}${_prefix}/share/xbmc/"
+ install -D -m 0755 "$srcdir/xbmc-$pkgver-$_codename/tools/TexturePacker/TexturePacker" \
+ "${pkgdir}$_prefix/lib/xbmc/"
# Licenses
- msg2 "Copy licenses"
- install -dm755 ${pkgdir}${_prefix}/share/licenses/${pkgname}
+ install -dm755 "${pkgdir}$_prefix/share/licenses/$pkgname"
for licensef in LICENSE.GPL copying.txt; do
- mv ${pkgdir}${_prefix}/share/doc/xbmc/${licensef} \
- ${pkgdir}${_prefix}/share/licenses/${pkgname}
+ mv "${pkgdir}$_prefix/share/doc/xbmc/$licensef" \
+ "${pkgdir}$_prefix/share/licenses/$pkgname"
done
# LinHES stuff
@@ -116,14 +125,8 @@ package() {
install -D -m 0755 ${srcdir}/xbmc.sh ${pkgdir}/usr/LH/bin
#add in xbmc_lib.conf
install -D -m0744 ${srcdir}/xbmc_lib.conf ${pkgdir}/etc/gen_lib_xml.d/xbmc_lib.conf
-
- # install systemd service
- install -Dm0644 $srcdir/xbmc.service $pkgdir/usr/lib/systemd/system/xbmc.service
- install -Dm0644 $srcdir/polkit.rules $pkgdir/etc/polkit-1/rules.d/10-xbmc.rules
}
-md5sums=('54fafd985b5209859ba6faeb50b8f142'
- 'de331663cc8adc94f2fe44a262cfff58'
- '02f7951824ee13103344f36009c0ef2a'
- '9f9b41cfc1e21b1e7d0bb10d6e85b3c6'
+# vim:set ts=2 sw=2 et:
+md5sums=('d80153b2cc78b88966458ab136e9494f'
'e48a3d87984669ef206e902bc8290ff9'
'71176cb0e5aaa230d7c9634c37245bfb')