mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
79 lines
3 KiB
Bash
79 lines
3 KiB
Bash
# $Id: PKGBUILD 73064 2012-06-30 06:07:26Z jconder $
|
|
# 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>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - correctly define ARM cpus for configure
|
|
# - disabled vdpau, mmx
|
|
|
|
pkgname=mythtv
|
|
pkgver=0.27
|
|
pkgrel=4
|
|
epoch=1
|
|
pkgdesc="A Homebrew PVR project"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.mythtv.org/"
|
|
license=('GPL')
|
|
depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
|
|
'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc-utils' 'mariadb-clients'
|
|
'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
|
|
'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'taglib' 'urlgrabber' 'x264')
|
|
makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' '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')
|
|
conflicts=('myththemes' 'mythplugins-mythvideo')
|
|
replaces=('myththemes' 'mythplugins-mythvideo')
|
|
backup=()
|
|
install='mythtv.install'
|
|
source=("$pkgname-$pkgver.tar.gz::http://www.$pkgname.org/download/$pkgname/$pkgver"
|
|
'mythbackend.service'
|
|
'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch')
|
|
sha256sums=('c236c879563a5fcccb6ca949ad04be93611745261f7c56282dda2eb32185a78c'
|
|
'f628f44164ce773ae54d320fb2f65353cacf9deec16981e4e56316ac33000a2f'
|
|
'8270407c2074b305e0c32151f89c84f6bf980a32665a2da8e4727405fa3911f3')
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-fixes-$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-fixes-$pkgver/$pkgname"
|
|
|
|
[[ $CARCH == "arm" ]] && ARCH="armv5te"
|
|
[[ $CARCH == "armv6h" ]] && ARCH="armv6l"
|
|
[[ $CARCH == "armv7h" ]] && ARCH="armv7-a"
|
|
./configure --prefix=/usr \
|
|
--cpu="$ARCH" \
|
|
--disable-mmx \
|
|
--disable-vdpau \
|
|
--disable-altivec \
|
|
--disable-audio-jack \
|
|
--disable-ccache \
|
|
--enable-libfftw3 \
|
|
--enable-libmp3lame \
|
|
--enable-libvpx \
|
|
--enable-libx264 \
|
|
--enable-vaapi \
|
|
--python=python2
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-fixes-$pkgver/$pkgname"
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
|
|
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"
|
|
mkdir -p "$pkgdir/var/log/mythtv"
|
|
}
|