mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
87 lines
3.8 KiB
Bash
87 lines
3.8 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, incompatible ARM FPUs
|
|
# - patch to fix v5 build
|
|
|
|
pkgname=mythtv
|
|
pkgver=29.0
|
|
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'
|
|
'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc' 'mariadb-clients'
|
|
'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
|
|
'perl-net-upnp' 'python2-lxml' 'qt5-webkit' 'qt5-script' 'taglib' 'urlgrabber'
|
|
'libx264' 'exiv2' 'libxrandr' 'jack')
|
|
makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 'x264' 'gdb')
|
|
optdepends=('glew: for GPU commercial flagging'
|
|
'libcec: for consumer electronics control capabilities'
|
|
'libxml2: to read blu-ray metadata'
|
|
'openssl: for AirTunes (RAOP) support')
|
|
conflicts=('myththemes' 'mythplugins-mythvideo')
|
|
replaces=('myththemes' 'mythplugins-mythvideo')
|
|
install='mythtv.install'
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
|
|
'mythbackend.service' '99-mythbackend.rules'
|
|
'0001-libudfread-set-HAVE_PTHREAD_H.patch')
|
|
sha512sums=('f1c50b39c82f4931d5542794c1848a0514c5ad25f2f0201190c162a4c8fc690764707124d7e9bd12b5261cc4fbf1702629c3e67831728aa16c38e09f5bc725ae'
|
|
'41533da5d8ef694d8c12f60d956673d9e49fb6781ae58d6bfd0bf31e4f380fddb508f9cad3b91264a3ad55853c24c6932bdf83bb5b711c34c0836d71b46be02c'
|
|
'fc02c190f01dbfb803b87ea0a6cdf408ce7706dc1ed74fba939931c129fdeb5dab1105caf9f71f029843a4d74db888084f92173c3be240d8492454633311f7c8'
|
|
'ee6e1a6a9dff14ea83bb4cdbd05f824227493f3d5ceceaee4d60677f6aa387686c35379a4e7f60baefd917f33e96be9e6c1d6cdbb68743336990e44e87e4b059')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver/$pkgname
|
|
|
|
patch -p2 -i "$srcdir/0001-libudfread-set-HAVE_PTHREAD_H.patch"
|
|
|
|
find 'bindings/python' 'contrib' 'programs/scripts' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver/$pkgname
|
|
|
|
[[ $CARCH == "arm" ]] && ARCH="armv5te" && CONFIG="--disable-armv6 --disable-armv6t2 --disable-vfp"
|
|
[[ $CARCH == "armv6h" ]] && ARCH="armv6l" && CONFIG="--disable-vfp"
|
|
[[ $CARCH == "armv7h" ]] && ARCH="armv7-a"
|
|
[[ $CARCH == "aarch64" ]] && CONFIG+=" --enable-vaapi" || CONFIG+=" --disable-vaapi"
|
|
./configure --prefix=/usr \
|
|
--cpu="$ARCH" \
|
|
--disable-mmx \
|
|
--disable-vdpau \
|
|
--disable-altivec \
|
|
--disable-audio-jack \
|
|
--disable-ccache \
|
|
--enable-libfftw3 \
|
|
--enable-libmp3lame \
|
|
--enable-libvpx \
|
|
--enable-libx264 \
|
|
--python=python2 \
|
|
--perl-config-opts=INSTALLDIRS=vendor \
|
|
--disable-neon $CONFIG
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$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"
|
|
|
|
# Install udev rules https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration#Delay_starting_the_backend_until_tuners_have_initialized
|
|
install -Dm644 "$srcdir"/99-mythbackend.rules "$pkgdir"/usr/lib/udev/rules.d/99-mythbackend.rules
|
|
}
|