mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 07:07:14 +08:00
xbmc updated, new deps, switch to mariadb, added .service
This commit is contained in:
parent
376baa4049
commit
de8d336696
@ -6,19 +6,20 @@
|
||||
_prefix=/usr
|
||||
|
||||
pkgname=xbmc
|
||||
pkgver=11.0
|
||||
pkgrel=5
|
||||
pkgver=12.0
|
||||
pkgrel=1
|
||||
pkgdesc="XBMC Media Center"
|
||||
arch=('x86_64')
|
||||
url="http://xbmc.org"
|
||||
license=('GPL' 'custom')
|
||||
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' 'pulseaudio'
|
||||
'samba' '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' 'mesa')
|
||||
'libmpeg2' 'libmariadbclient' 'libsamplerate' 'libxinerama' 'libpng' 'libbluedevil'
|
||||
'libxrandr' 'libxtst' 'lzo2' 'sdl_image' 'sdl_mixer' 'libvorbis' 'pulseaudio' 'libdvdcss'
|
||||
'samba' 'wavpack' 'mesa-demos' 'xorg-utils' 'libmicrohttpd' 'libjpeg-turbo' 'mesa' 'swig'
|
||||
'libssh' 'libva' 'libmodplug' 'rtmpdump' 'lsb-release' 'sqlite3' 'libbluray' 'java-runtime'
|
||||
'tinyxml' 'taglib' 'libcap')
|
||||
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'libvdpau' 'unzip' 'zip' 'cvs' 'autoconf' 'automake' 'doxygen')
|
||||
optdepends=('lirc: remote controller support'
|
||||
'unrar: access compressed files without unpacking them'
|
||||
'udisks: automount external drives'
|
||||
@ -31,25 +32,28 @@ screenshot=('http://xbmc.org/wp-content/gallery/back-row/screenshot000.jpg')
|
||||
install='xbmc.install'
|
||||
options=(makeflags)
|
||||
source=("http://mirrors.xbmc.org/releases/source/xbmc-$pkgver.tar.gz"
|
||||
"FEH.sh")
|
||||
md5sums=('9e8a26ee25173c7268abea7f1d82d428'
|
||||
'c3e2ab79b9965f1a4a048275d5f222c4')
|
||||
'FEH.sh'
|
||||
'xbmc.service')
|
||||
md5sums=('a79128b9d094a046947bfd9bb4550809'
|
||||
'c3e2ab79b9965f1a4a048275d5f222c4'
|
||||
'76fae229ebc3bcfaab7e7f27e4fb51f5')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/xbmc-$pkgver"
|
||||
|
||||
msg "Bootstrapping XBMC"
|
||||
./bootstrap
|
||||
|
||||
|
||||
export PYTHON_VERSION=2
|
||||
msg "Configuring XBMC"
|
||||
./configure --prefix=${_prefix} \
|
||||
--enable-vdpau \
|
||||
--enable-pulse \
|
||||
--disable-hal \
|
||||
--disable-avahi \
|
||||
--disable-external-ffmpeg \
|
||||
--enable-rtmp \
|
||||
--enable-libbluray \
|
||||
--enable-dvdcss \
|
||||
--disable-debug
|
||||
|
||||
msg "Running make"
|
||||
@ -87,10 +91,13 @@ package() {
|
||||
# Docs
|
||||
install -d -m 0755 "${pkgdir}${_prefix}/share/doc/${pkgname}"
|
||||
|
||||
# cleanup some stuff
|
||||
# Cleanup
|
||||
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"
|
||||
|
||||
# Systemd service
|
||||
install -Dm0644 $srcdir/xbmc.service $pkgdir/usr/lib/systemd/system/xbmc.service
|
||||
|
||||
}
|
||||
|
13
xbmc/xbmc.service
Normal file
13
xbmc/xbmc.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description = Starts instance of XBMC using xinit
|
||||
After = remote-fs.target
|
||||
|
||||
[Service]
|
||||
User = xbmc
|
||||
Group = xbmc
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/xinit /usr/bin/xbmc-standalone -- :0 -nolisten tcp
|
||||
Restart = always
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
Loading…
Reference in New Issue
Block a user