PKGBUILDs/community/mythtv/PKGBUILD

86 lines
3 KiB
Bash
Raw Normal View History

2012-07-01 20:11:48 +00:00
# $Id: PKGBUILD 73064 2012-06-30 06:07:26Z jconder $
2011-05-17 22:24:39 +00:00
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# Contributor: <kleptophobiac@gmail.com>
# Contributor: dorphell <dorphell@archlinux.org>
2011-12-22 07:13:40 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2011-05-17 22:24:39 +00:00
# - correctly define ARM cpus for configure
2012-01-29 23:57:36 +00:00
# - disabled vdpau, mmx
2011-05-17 22:24:39 +00:00
pkgname=mythtv
2012-10-06 05:02:26 +00:00
pkgver=0.26.0
pkgrel=9
2011-05-17 22:24:39 +00:00
epoch=1
pkgdesc="A Homebrew PVR project"
arch=('i686' 'x86_64')
url="http://www.mythtv.org/"
license=('GPL')
2012-04-12 12:25:04 +00:00
depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
2012-10-17 12:43:00 +00:00
'libpulse' 'libva' 'libvdpau' 'libxinerama' 'lirc-utils'
2013-03-25 21:32:33 +00:00
'mariadb-clients' 'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6'
2012-04-12 12:25:04 +00:00
'perl-libwww' 'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'urlgrabber'
'x264')
2013-02-24 23:58:53 +00:00
makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm')
2012-04-12 12:25:04 +00:00
optdepends=('glew: for GPU commercial flagging'
'libcec: for consumer electronics control capabilities'
'libxml2: to read blu-ray metadata'
'openssl: for AirTunes (RAOP) support'
'xmltv: to download tv listings')
2012-04-19 12:30:52 +00:00
conflicts=('myththemes' 'mythplugins-mythvideo')
replaces=('myththemes' 'mythplugins-mythvideo')
backup=()
2011-05-17 22:24:39 +00:00
install='mythtv.install'
source=("ftp://ftp.osuosl.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2"
2013-01-17 00:56:23 +00:00
'alsa.patch'
2013-01-29 21:08:00 +00:00
'mythbackend.service'
'libva-compat.patch::https://github.com/garybuhrmaster/mythtv/commit/2add868d2f18b8b47d9747e043f052e88869bfc3.patch'
2013-01-29 21:08:00 +00:00
'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.patch')
2012-10-06 05:02:26 +00:00
md5sums=('f57066bf75e6f14824c494d41639f4f9'
2013-01-17 00:56:23 +00:00
'f64b8219e3d27a2edf96733b851e576b'
2013-01-29 21:08:00 +00:00
'e4d572dcc307d6d8ae26bee5aebf9f3a'
'ae88a16e9f42a913f395bf71af18e931'
2013-01-29 21:08:00 +00:00
'6e156c9fc0b369346d93ccafad46cba3')
2011-05-17 22:24:39 +00:00
build() {
cd "$srcdir/$pkgname-$pkgver"
2011-05-21 03:04:59 +00:00
find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
2011-05-17 22:24:39 +00:00
2013-01-17 00:56:23 +00:00
patch -Np1 -i "$srcdir/alsa.patch"
patch -Np2 -i "$srcdir/libva-compat.patch"
2013-01-29 21:08:00 +00:00
patch -Np2 -i "$srcdir/libcec-2-support.patch"
2013-01-17 00:56:23 +00:00
2012-07-01 20:11:48 +00:00
sed -re 's@Key, &@Key, @' -i 'bindings/php/MythBase.php'
2012-04-12 12:25:04 +00:00
2013-01-29 21:08:00 +00:00
[[ $CARCH == "arm" ]] && ARCH="armv5te"
[[ $CARCH == "armv6h" ]] && ARCH="armv6l"
[[ $CARCH == "armv7h" ]] && ARCH="armv7-a"
2012-04-12 12:25:04 +00:00
./configure --prefix=/usr \
--cpu="$ARCH" \
2012-01-29 23:57:36 +00:00
--disable-mmx \
2011-05-21 03:04:59 +00:00
--disable-vdpau \
2012-04-12 12:25:04 +00:00
--disable-altivec \
--disable-audio-jack \
--disable-ccache \
--disable-distcc \
--enable-libfftw3 \
--enable-libmp3lame \
--enable-libx264 \
--enable-vaapi \
--python=python2
2011-05-17 22:24:39 +00:00
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make INSTALL_ROOT="$pkgdir" install
2012-07-01 20:11:48 +00:00
install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
2011-05-17 22:24:39 +00:00
install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
mkdir -p "$pkgdir/usr/share/mythtv"
cp -R 'contrib' "$pkgdir/usr/share/mythtv"
2012-04-12 12:25:04 +00:00
mkdir -p "$pkgdir/var/log/mythtv"
2011-05-17 22:24:39 +00:00
}