desktop/mythtv/PKGBUILD
2015-06-17 11:39:47 +00:00

66 lines
2.6 KiB
Bash

# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/mythtv
pkgname=mythtv
pkgver=0.27.5
pkgrel=1
pkgdesc="A Homebrew PVR project"
arch=('x86_64')
url="http://www.mythtv.org/"
license=('GPL')
depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc'
'mariadb-clients' 'mysql-python' 'perl-dbd-mysql'
'perl-io-socket-inet6' 'perl-libwww' 'perl-net-upnp' 'python2-lxml'
'qtwebkit' 'taglib' 'urlgrabber' 'x264' 'libvdpau')
makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'openssl' 'yasm' 'gdb')
optdepends=('glew: for GPU commercial flagging'
'libcec: for consumer electronics control capabilities'
'libxml2: to read blu-ray metadata'
'openssl: for AirTunes (RAOP) support'
'udisks: detect changes to removable media'
'xmltv: to download tv listings')
install='mythtv.install'
source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
'mythbackend.service'
'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch')
sha512sums=('7f4c1c0efa1fe7e404723853d48447a8c9396406803f641c83979a083cdb9fa0319535945080033789e7af5e288d2f8ad71efa7a979918d4db2188824e581309'
'8c5327ef450296f33f725ccbca82b9cb71e0eb8c6239cddab57817c085b962ec31f39a337ee55ed22c7eea0c79b104d73f6dbfbfa7a583f956d8c1f17cc38a5b'
'5d4db25c767e5417148fc7b9dd6a8276cb7737203a2247e7a5c5e24084a3fa9246ebef177f4c65491d84eb40f91774f9821c5051cb3a0258c625b0315b4d3d87')
prepare() {
cd $srcdir/$pkgname-$pkgver/$pkgname
find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
patch -Np2 -i $srcdir/libcec-2-support.2.patch
}
build() {
cd $srcdir/$pkgname-$pkgver/$pkgname
./configure --prefix=/usr \
--cpu=x86-64 \
--disable-altivec \
--disable-audio-jack \
--disable-ccache \
--disable-distcc \
--enable-libfftw3 \
--enable-libmp3lame \
--enable-libvpx \
--enable-libx264 \
--enable-vaapi \
--python=python2 \
--perl-config-opts=INSTALLDIRS=vendor
make
}
package() {
cd $srcdir/$pkgname-$pkgver/$pkgname
make INSTALL_ROOT=$pkgdir install
install -Dm644 $srcdir/mythbackend.service $pkgdir/usr/lib/systemd/system/mythbackend.service
install -Dm644 'database/mc.sql' $pkgdir/usr/share/mythtv/mc.sql
install -d $pkgdir/{usr/share/mythtv,var/log/mythtv}
cp -R 'contrib' $pkgdir/usr/share/mythtv
}