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
|
# Description:Le centre multimédia XBMC
# URL: http://mirrors.xbmc.org
# Maintainer: Andreas Setterlind & Staffan Lindberg
# Packager: fanch
# Depends on: mesa-demos,udisks,upower,unrar,unzip,ffmpeg,libva,libplist,libvdpau,libusbx,libshairport,libnfs,afpfs-ng,samba3,rtmpdump,pulseaudio,libmicrohttpd,sdl,sdl_image,sdl_mixer,libbluray,libcdio,yajl,bluez,libssh,lzo,libmodplug,libvorbis,libsamplerate,libmad,libmpeg2,libass,libmysql,glew,boost,wxgtk, libgd,pycrypto, xorg-libxinerama, xorg-libxrandr, xorg-libxi, xorg-libxcursor
# Run on: mesa-demos,udisks,upower,unrar,unzip,ffmpeg,libva,libplist,libvdpau,libusbx,libshairport,libnfs,afpfs-ng,samba3,rtmpdump,pulseaudio,libmicrohttpd,sdl,sdl_image,sdl_mixer,libbluray,libcdio,yajl,bluez,libssh,lzo,libmodplug,libvorbis,libsamplerate,libmad,libmpeg2,libass,libmysql,glew,boost,wxgtk,pycrypto,libgd,xorg-libxinerama,xorg-libxrandr,xorg-libxi,xorg-libxcursor
name=xbmc
version=11.0
release=3
source=(http://mirrors.xbmc.org/releases/source/$name-$version.tar.gz)
build() {
cd $SRC/xbmc-$version
sed -i -e 's:/usr/bin/lsb_release -d:cat /etc/arch-release:' xbmc/utils/SystemInfo.cpp
./bootstrap
export PYTHON_VERSION=2
./configure --prefix=/usr \
--disable-debug \
--enable-optimizations \
--enable-gl \
--enable-sdl \
--enable-vaapi \
--enable-vdpau \
--enable-xvba \
--enable-joystick \
--enable-xrandr \
--enable-rsxs \
--enable-projectm \
--enable-x11 \
--enable-pulse \
--enable-rtmp \
--enable-samba \
--enable-nfs \
--enable-afpclient \
--enable-airplay \
--enable-airtunes \
--enable-ffmpeg-libvorbis \
--enable-dvdcss \
--disable-hal \
--enable-avahi \
--enable-webserver \
--enable-optical-drive \
--enable-libbluray \
--enable-texturepacker \
--enable-udev \
--enable-libusb \
--enable-libcec \
--enable-external-libraries \
--disable-external-ffmpeg
make
make prefix=$PKG/usr install
# run feh with python2
sed -i -e 's/python/python2/g' $PKG/usr/bin/xbmc
# lsb_release fix
sed -i -e 's/which lsb_release &> \/dev\/null/\[ -f \/etc\/arch-release ]/g' "$PKG/usr/bin/xbmc"
sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/cat \/etc\/arch-release/g" "$PKG/usr/bin/xbmc"
# Tools
install -D -m 0755 "$SRC/xbmc-$version/xbmc-xrandr" "$PKG/usr/share/xbmc/xbmc-xrandr"
install -D -m 0755 "$SRC/xbmc-$version/tools/TexturePacker/TexturePacker" "$PKG/usr/share/xbmc/"
# Licenses
install -d -m 0755 "$PKG/usr/share/licenses/$name"
for licensef in LICENSE.GPL copying.txt; do
mv "$PKG/usr/share/doc/xbmc/$licensef" "$PKG/usr/share/licenses/$name"
done
rm $PKG/usr/share/icons/hicolor/icon-theme.cache
}
|