pkgname=mythtv pkgver=0.23 pkgrel=31 pkgdesc="A personal video recorder for Linux" url="http://www.mythtv.org" license="GPL" depends=('bash' 'mysql-clients>=5.0' 'qt' 'lame' 'lirc-utils' 'ffmpeg' \ 'faad2' 'libxv' 'libxvmc' 'libavc1394' 'libdc1394' 'libiec61883' \ 'perl-net-upnp' 'libvdpau') makedepends=('libgl' 'subversion') replaces=() groups=('pvr') #backup=(/usr/share/mythtv/is.xml) #options=(!strip) #MAKEFLAGS="-j6" install='mythtv.install' patchs=() #patchs=('smolt_jump.patch') source=('ftp://ftp.knoppmyth.net/R6/sources/mythtv-0.23-fixes.tar.bz2' 'mythbackend' 'myth.sh' `echo ${patchs[@]:0}` 'mythbackend.lr' 'mythfrontend.lr' 'pretty') arch=('i686' 'x86_64') build() { # get clean copy from SVN repo cd $startdir/src/mythtv svn update # apply patches echo "--------------------------applying patches----------------------------------------------------" for i in `echo ${patchs[@]:0} ` do echo applying $i echo "-----------------------------" patch -Np0 -i ${startdir}/src/$i || return 1 done echo "--------------------------done applying patches-----------------------------------------------" # Fix to allow AC3 5.1 to return http://svn.mythtv.org/trac/ticket/8659 sed -i 's/#define\ AUDIOMAXFRAMES\ \ \ \ \ \ \ 30/#define\ AUDIOMAXFRAMES\ \ \ \ \ \ \ 0/' libs/libmythtv/avformatdecoder.h sed -i -e "s/\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`/$pkgver/" version.pro [ "$CARCH" = "i686" ] && ARCH="i686" [ "$CARCH" = "x86_64" ] && ARCH="x86-64" # clean up from last build make distclean # configure ./configure --prefix=/usr --arch=${ARCH} \ --enable-vdpau --enable-xvmc --enable-xvmc-pro \ --enable-opengl-vsync --enable-libfaad --enable-dvb --enable-firewire \ --compile-type=release --with-bindings=perl,python \ --enable-audio-alsa --disable-audio-jack --disable-audio-pulseoutput || return 1 # build and install . /etc/profile make || return 1 make INSTALL_ROOT=$startdir/pkg install || return 1 # install db schema, scripts and docs install -m0644 database/mc.sql $startdir/pkg/usr/share/mythtv/ || return 1 install -D -m0755 ../mythbackend $startdir/pkg/etc/rc.d/mythbackend || return 1 # cp -r docs $startdir/pkg/usr/share/mythtv/ || return 1 rsync -arp --exclude .svn --delete-excluded docs $startdir/pkg/usr/share/mythtv/ || return 1 # install contrib rsync -arp --exclude .svn --delete-excluded contrib $startdir/pkg/usr/share/mythtv/ || return 1 #cp -r contrib $startdir/pkg/usr/share/mythtv/ || return 1 # patch the xml LinHES style cp -r $startdir/menu-xml/*.xml $startdir/pkg/usr/share/mythtv/themes/defaultmenu/ # mv $startdir/pkg/usr/share/mythtv/themes/defaultmenu/is.xml $startdir/pkg/usr/share/mythtv/ cd $startdir/pkg/usr/share/mythtv/themes/defaultmenu patch -p0 < $startdir/menu-xml/mainmenu.xml.patch || return 1 patch -p0 < $startdir/menu-xml/optical_menu.xml.patch || return 1 patch -p0 < $startdir/menu-xml/library.xml.patch || return 1 patch -p0 < $startdir/menu-xml/util_menu.xml.patch || return 1 # make log dir mkdir -p $startdir/pkg/var/log/mythtv chown 1000.1000 $startdir/pkg/var/log/mythtv mkdir -p $startdir/pkg/etc/logrotate.d cp $startdir/src/*.lr $startdir/pkg/etc/logrotate.d mkdir -p $startdir/pkg/etc/cron.hourly/ install -m0755 $startdir/src/pretty $startdir/pkg/etc/cron.hourly/ } md5sums=('f75a4f1be66c2803df54466d4c30361a' '7ef6de58240e7aad389a0b13d91b1cf6' '2babd4b8e146a7538d18dcd55695b0be' 'f735805a80b0d1180dee01f9df1b7004' 'f407d6af23e74a49540755420f84fa58' '5469d9921b726db750b991c87d226158')