PKGBUILDs/community/mythtv/PKGBUILD

82 lines
2.7 KiB
Bash
Raw Normal View History

2012-04-12 12:25:04 +00:00
# $Id: PKGBUILD 69261 2012-04-11 06:53:15Z 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
plugrel=1
pkgname=mythtv
2012-04-12 12:25:04 +00:00
pkgver=0.25
2012-04-19 12:30:52 +00:00
pkgrel=3
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'
'libpulse' 'libva' 'libxinerama' 'lirc-utils' 'mesa'
'mysql-clients' 'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6'
'perl-libwww' 'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'urlgrabber'
'x264')
makedepends=('glew' 'libcec' 'libxml2' 'openssl' 'yasm')
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')
2011-05-17 22:24:39 +00:00
backup=('etc/conf.d/mythbackend')
install='mythtv.install'
source=("ftp://ftp.osuosl.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2"
2012-04-12 12:25:04 +00:00
'mythtv_0.25_gcc_4.7.patch'
2011-05-17 22:24:39 +00:00
'mythbackend.rc'
2012-01-29 23:57:36 +00:00
'mythbackend.conf')
2012-04-12 12:25:04 +00:00
md5sums=('e49c81de40e279c83dcb1b2aa9a45748'
'6090f5f22a8584db80b76cf19869ee41'
'62fd98347c56b1d9b795792f83269d25'
'1f72db0586f97a7c3fd3155dfa9a6c6f')
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
2012-04-12 12:25:04 +00:00
#patch -Np1 -i "$srcdir/mythtv_0.25_gcc_4.7.patch"
2011-05-21 03:04:59 +00:00
[[ $CARCH == "arm" ]] && ARCH="armv5te"
[[ $CARCH == "armv7" ]] && 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
install -D -m755 "$srcdir/mythbackend.rc" "$pkgdir/etc/rc.d/mythbackend"
install -D -m644 "$srcdir/mythbackend.conf" "$pkgdir/etc/conf.d/mythbackend"
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
}