blob: 81755b3581b818a50b1f32b4738fe08476f2c8f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com>
# Contributor: Zeqadious <zeqadious.at.gmail.dot.com>
pkgname=xbmc
pkgver=9.11
pkgrel=2
pkgdesc="XBMC Media Center"
arch=('i686' 'x86_64')
url="http://xbmc.org"
license=('GPL' 'custom')
conflicts=('xbmc-svn')
depends=('alsa-lib' 'curl' 'enca' 'faac' 'freetype2' 'fribidi' 'gawk' 'glew'
'hal' 'jasper' 'libgl' 'libjpeg>=6b-5' 'libmad' 'libmysqlclient'
'libxinerama' 'libxrandr' 'lzo2' 'sdl_image' 'sdl_mixer' 'sqlite3'
'tre' 'unzip' 'x-server' 'libcdio' 'wavpack' 'libmpeg2' 'a52dec'
'smbclient' 'faad2' 'libsamplerate' 'libmms' 'xorg-utils')
makedepends=('autoconf' 'automake' 'boost' 'cmake' 'gcc' 'gperf'
'libtool>=2.2.6a-1' 'make' 'nasm' 'patch' 'pkgconfig' 'zip'
'libvdpau')
optdepends=('libcdio: optical disc support'
'lirc: remote controller support'
'pmount: mount removable devices as normal user'
'smbclient: access windows shares'
'unrar: access compressed files without unpacking them')
install=("${pkgname}.install")
options=(force)
source=("http://downloads.sourceforge.net/project/xbmc/XBMC%20Source%20Code/Camelot%20-%20$pkgver/xbmc-${pkgver/_/-}.tar.gz" \
'Lircmap.xml')
md5sums=('9a68ac1e2f44a54cc3803fcdb1265767')
build() {
cd "${srcdir}/xbmc-${pkgver/_/-}"
_xbmcprefix=/opt/xbmc
if [ $NOEXTRACT -ne 1 ]; then
# if true; then
./bootstrap
./configure --prefix=${_xbmcprefix} \
--enable-vdpau \
--disable-pulse \
--disable-avahi \
--enable-external-liba52 \
--enable-external-libdts \
--enable-external-libmpeg2 \
--enable-external-libogg \
--enable-external-libwavpack \
--disable-external-libass \
--disable-external-ffmpeg \
--disable-external-python \
--disable-debug || return 1
fi
make || return 1
make prefix=${pkgdir}${_xbmcprefix} install || return 1
# Fix the shell script
sed -i '3iexport SDL_AUDIODRIVER=alsa' ${pkgdir}${_xbmcprefix}/bin/xbmc
# Menu item
install -Dm644 ${srcdir}/xbmc-${pkgver/_/-}/tools/Linux/xbmc.desktop \
${pkgdir}/usr/share/applications/xbmc.desktop || return 1
install -Dm644 ${srcdir}/xbmc-${pkgver/_/-}/tools/Linux/xbmc.png \
${pkgdir}/usr/share/pixmaps/xbmc.png || return 1
# XBMCTex
# install -Dm755 ${srcdir}/xbmc-${pkgver/_/-}/tools/XBMCTex/XBMCTex \
# ${pkgdir}${_xbmcprefix}/share/xbmc/tools/xbmctex || return 1
# License(s)
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
for licensef in LICENSE.GPL README.linux copying.txt; do
mv ${pkgdir}${_xbmcprefix}/share/xbmc/${licensef} \
${pkgdir}/usr/share/licenses/${pkgname} || return 1
done
# profile.d
mkdir -p $pkgdir/etc/profile.d/ && \
echo "export PATH=\$PATH:${_xbmcprefix}/bin" >$pkgdir/etc/profile.d/xbmc.sh && \
chmod 0755 $pkgdir/etc/profile.d/xbmc.sh || return 1
# fix .desktop
sed -i 's#Exec=xbmc#Exec=/opt/xbmc/bin/xbmc#' $pkgdir/opt/xbmc/share/xsessions/XBMC.desktop $pkgdir/usr/share/applications/xbmc.desktop
# Use custom Lircmap to support StreamZap remote
cp ${srcdir}/Lircmap.xml ${pkgdir}${_xbmcprefix}/share/xbmc/system/Lircmap.xml
}
|