2010-06-08 05:54:36 +08:00
|
|
|
#
|
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-03-26 02:45:18 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-06-08 05:54:36 +08:00
|
|
|
|
2012-03-28 02:42:19 +08:00
|
|
|
_prefix=/usr
|
|
|
|
|
2010-06-08 05:54:36 +08:00
|
|
|
pkgname=xbmc
|
2012-03-26 02:45:18 +08:00
|
|
|
pkgver=11.0
|
2012-03-28 02:42:19 +08:00
|
|
|
pkgrel=2
|
2010-06-08 05:54:36 +08:00
|
|
|
pkgdesc="XBMC Media Center"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://xbmc.org"
|
|
|
|
license=('GPL' 'custom')
|
2012-03-26 02:45:18 +08:00
|
|
|
depends=( 'bzip2' 'curl' 'enca' 'faac' 'faad2' 'fontconfig' 'fribidi' 'python2' 'python-pysqlite'
|
|
|
|
'glew' 'jasper' 'libcdio' 'libgl' 'libmad' 'libmms' 'libass' 'yajl' 'libpng12'
|
|
|
|
'libmpeg2' 'libmysqlclient' 'libsamplerate' 'libxinerama' 'libpng' 'libbluedevil'
|
|
|
|
'libxrandr' 'libxtst' 'lzo2' 'sdl_image' 'sdl_mixer' 'libvorbis' 'libpulse'
|
|
|
|
'smbclient' 'wavpack' 'mesa-demos' 'xorg-utils' 'libmicrohttpd' 'libjpeg-turbo'
|
|
|
|
'libssh' 'libva' 'libmodplug' 'rtmpdump' 'lsb-release' 'sqlite3' 'libbluray')
|
|
|
|
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'libvdpau' 'unzip' 'zip' 'cvs' 'autoconf' 'automake')
|
2010-06-08 05:54:36 +08:00
|
|
|
optdepends=('lirc: remote controller support'
|
2012-03-16 22:51:37 +08:00
|
|
|
'unrar: access compressed files without unpacking them'
|
|
|
|
'udisks: automount external drives'
|
|
|
|
'upower: used to trigger suspend functionality'
|
|
|
|
'libvdpau: for nvidia hardware acceleration'
|
|
|
|
'lcms'
|
|
|
|
'tk')
|
|
|
|
categories=('multimedia')
|
2010-06-08 05:54:36 +08:00
|
|
|
install=("${pkgname}.install")
|
2012-01-15 12:55:09 +08:00
|
|
|
options=(makeflags)
|
2010-12-21 07:23:30 +08:00
|
|
|
source=("http://mirrors.xbmc.org/releases/source/xbmc-$pkgver.tar.gz"
|
2012-03-26 02:45:18 +08:00
|
|
|
"FEH.sh")
|
|
|
|
md5sums=('9e8a26ee25173c7268abea7f1d82d428'
|
|
|
|
'c3e2ab79b9965f1a4a048275d5f222c4')
|
2010-06-08 05:54:36 +08:00
|
|
|
|
|
|
|
build() {
|
2010-12-21 07:23:30 +08:00
|
|
|
cd "${srcdir}/xbmc-$pkgver"
|
|
|
|
|
|
|
|
msg "Bootstrapping XBMC"
|
2010-06-08 05:54:36 +08:00
|
|
|
./bootstrap
|
2010-12-21 07:23:30 +08:00
|
|
|
|
|
|
|
msg "Configuring XBMC"
|
2012-03-26 02:45:18 +08:00
|
|
|
./configure --prefix=${_prefix} \
|
2010-12-21 07:23:30 +08:00
|
|
|
--enable-vdpau \
|
2012-03-26 02:45:18 +08:00
|
|
|
--enable-pulse \
|
2011-02-15 05:52:14 +08:00
|
|
|
--disable-hal \
|
2010-12-21 07:23:30 +08:00
|
|
|
--disable-avahi \
|
|
|
|
--disable-external-ffmpeg \
|
2011-02-15 05:52:14 +08:00
|
|
|
--enable-rtmp \
|
2012-03-26 02:45:18 +08:00
|
|
|
--enable-libbluray \
|
2010-12-21 07:23:30 +08:00
|
|
|
--disable-debug
|
|
|
|
|
|
|
|
msg "Running make"
|
2012-03-26 02:45:18 +08:00
|
|
|
make
|
2010-12-21 07:23:30 +08:00
|
|
|
make -C lib/addons/script.module.pil
|
2010-06-08 05:54:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2010-12-21 07:23:30 +08:00
|
|
|
cd "${srcdir}/xbmc-$pkgver"
|
|
|
|
msg "Running make install"
|
|
|
|
make prefix="${pkgdir}${_prefix}" install
|
|
|
|
|
|
|
|
# Replace FEH.py with FEH.sh (and thus remove external python dependency)
|
|
|
|
install -D -m 0755 "${srcdir}/FEH.sh" "${pkgdir}${_prefix}/share/xbmc/FEH.sh"
|
|
|
|
sed -i -e 's/^python \(.*\)FEH.py \(.*\)$/\1FEH.sh \2/' "${pkgdir}${_prefix}/bin/xbmc"
|
|
|
|
|
|
|
|
# lsb_release fix
|
2011-02-15 05:52:14 +08:00
|
|
|
sed -i -e 's/which lsb_release &> \/dev\/null/\[ -f \/etc\/arch-release ]/g' "${pkgdir}${_prefix}/bin/xbmc"
|
|
|
|
sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/cat \/etc\/arch-release/g" "${pkgdir}${_prefix}/bin/xbmc"
|
2010-12-21 07:23:30 +08:00
|
|
|
|
|
|
|
# .desktop files
|
|
|
|
install -D -m 0644 "${srcdir}/xbmc-$pkgver/tools/Linux/xbmc.desktop" "${pkgdir}${_prefix}/share/applications/xbmc.desktop"
|
|
|
|
install -D -m 0644 "${srcdir}/xbmc-$pkgver/tools/Linux/xbmc-48x48.png" "${pkgdir}${_prefix}/share/pixmaps/xbmc.png"
|
|
|
|
|
|
|
|
# Tools
|
|
|
|
install -D -m 0755 "${srcdir}/xbmc-$pkgver/xbmc-xrandr" "${pkgdir}${_prefix}/share/xbmc/xbmc-xrandr"
|
|
|
|
install -D -m 0755 "${srcdir}/xbmc-$pkgver/tools/TexturePacker/TexturePacker" "${pkgdir}${_prefix}/share/xbmc/"
|
|
|
|
|
|
|
|
# Licenses
|
|
|
|
install -d -m 0755 "${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}"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Docs
|
|
|
|
install -d -m 0755 "${pkgdir}${_prefix}/share/doc/${pkgname}"
|
|
|
|
|
|
|
|
# cleanup some stuff
|
|
|
|
msg "Cleanup unneeded files"
|
|
|
|
rm -rf "${pkgdir}/usr/share/xsessions"
|
|
|
|
rm -f "${pkgdir}/usr/share/xbmc/FEH.py"
|
|
|
|
rm -f "${pkgdir}/usr/share/icons/hicolor/icon-theme.cache"
|
|
|
|
|
2010-06-08 05:54:36 +08:00
|
|
|
}
|