mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
70 lines
2.2 KiB
Bash
70 lines
2.2 KiB
Bash
# $Id: PKGBUILD 38570 2009-05-09 10:37:25Z allan $
|
|
# Contributor: <kleptophobiac@gmail.com>
|
|
# Contributor: dorphell <dorphell@archlinux.org>
|
|
# Maintainer: Paul Mattal <paul@archlinux.org>
|
|
|
|
pkgname=mythtv
|
|
pkgver=0.21
|
|
pkgrel=2
|
|
pkgdesc="A Homebrew PVR project"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.mythtv.org/"
|
|
license=('GPL2')
|
|
groups=('pvr')
|
|
depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
|
|
'libxvmc')
|
|
makedepends=(libgl)
|
|
backup=(etc/mythtv/mythbackend.conf etc/mythtv/mysql.txt)
|
|
install=mythtv.install
|
|
source=(ftp://ftp.osuosl.org/pub/mythtv/${pkgname}-${pkgver}.tar.bz2
|
|
mythtv-dvb.patch
|
|
mythtv-ffmpeg.patch
|
|
mythbackend
|
|
QUICKSTART.archlinux)
|
|
md5sums=('49fc135e1cde90cd935c1229467fa37e'
|
|
'64e065ae63711935575665a1f60d51e1'
|
|
'47399b97437fdf2ed26e7b0cdac80afd'
|
|
'75614f43b579fcae870a7c128038f147'
|
|
'a0ecb7f476cb71c0c1ac90d349fc7695')
|
|
|
|
build() {
|
|
cd $srcdir/${pkgname}-${pkgver} || return 1
|
|
patch -Np1 -i $srcdir/mythtv-dvb.patch
|
|
patch -Np1 -i $srcdir/mythtv-ffmpeg.patch
|
|
|
|
. /etc/profile.d/qt3.sh
|
|
|
|
# use QT3 qmake
|
|
export PATH=$QTDIR/bin:$PATH
|
|
[ "$CARCH" = "i686" ] && ARCH="i686"
|
|
[ "$CARCH" = "x86_64" ] && ARCH="x86-64"
|
|
|
|
./configure --prefix=/usr --cpu=${ARCH} --enable-mmx --enable-audio-oss \
|
|
--enable-audio-alsa --enable-dvb --enable-lirc --enable-joystick-menu \
|
|
--disable-firewire --enable-v4l --enable-ivtv --enable-dvb \
|
|
--dvb-path=/usr/include/linux/dvb --enable-xvmc --disable-ffmpeg \
|
|
--enable-xvmc-pro --enable-xvmc-vld --enable-opengl-vsync \
|
|
--disable-audio-jack --disable-audio-arts || return 1
|
|
|
|
# build
|
|
|
|
qmake mythtv.pro || return 1
|
|
make qmake || return 1
|
|
make || return 1
|
|
|
|
# basic install
|
|
make INSTALL_ROOT=$pkgdir install || return 1
|
|
|
|
# install db schema
|
|
install -m0644 database/mc.sql $pkgdir/usr/share/mythtv/ || return 1
|
|
install -D -m0755 ../mythbackend $pkgdir/etc/rc.d/mythbackend || return 1
|
|
cp -r docs $pkgdir/usr/share/mythtv/ || return 1
|
|
cp ../QUICKSTART.archlinux $pkgdir/usr/share/mythtv/ || return 1
|
|
|
|
# install contrib
|
|
mkdir -p $pkgdir/usr/share/mythtv/contrib || return 1
|
|
install -m0755 contrib/* $pkgdir/usr/share/mythtv/contrib
|
|
|
|
# set suid on mythfrontend
|
|
chmod a+s $pkgdir/usr/bin/mythfrontend
|
|
}
|