pkgname=mythtv-release-fixes pkgver=20034 pkgrel=1 pkgdesc=".21 A personal video recorder for Linux" url="http://www.mythtv.org" license="GPL" depends=('lame' 'libmysqlclient' 'alsa-lib' 'wget' 'qt3' 'x-server' 'freetype2' 'libmpeg2' 'libxml2' 'libraw1394' 'lirc' 'perl-date-manip' 'libavc1394' 'libdc1394' 'libiec61883') makedepends=('subversion') conflicts=(mythtv-svn) replaces=() backup=() options=(!strip) MAKEFLAGS="-j6" install='mythtv.install' #source=(mythbackend myth.sh 3466-v1.patch reload.patch) source=(mythbackend myth.sh myth.find_orphans.pl dbconfig.patch myththemedmenu.cpp.patch myththemedmenu.h.patch screenshots2.diff screenshot_jump.patch pop_be_restart.h.patch pop_be_restart.cpp.patch jump_snapshot.patch smolt_jump.patch) arch=('i686') md5sums=() _svntrunk=http://svn.mythtv.org/svn/branches/release-0-21-fixes/mythtv #_svntrunk=http://cvs.mythtv.org/svn/trunk/mythtv _svnmod=mythtv build() { svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod cd $startdir/src/mythtv patch -p0 < ../dbconfig.patch grep snapshot programs/mythfrontend/networkcontrol.cpp|grep -q jumpMap status=$? if [ $status != 0 ] then echo "patching for screenshot" patch -p0 < ../screenshots2.diff patch -p0 < ../screenshot_jump.patch # patch -p0 < ../jump_snapshot.patch else echo "screenshot already patched" fi patch -p0 < ../myththemedmenu.cpp.patch patch -p0 < ../myththemedmenu.h.patch patch -p0 < ../pop_be_restart.h.patch patch -p0 < ../pop_be_restart.cpp.patch patch -p0 < ../smolt_jump.patch sed -i -e "s/\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`/$pkgver/" version.pro make distclean make clean ./configure --prefix=/usr --enable-opengl-vsync --enable-dvb --enable-firewire --compile-type=release --with-bindings=perl --disable-audio-arts --disable-xrandr --disable-audio-jack --disable-directfb --disable-xvmc --disable-xvmcw --enable-xvmc-pro --enable-xvmc-opengl . /etc/profile make make INSTALL_ROOT=$startdir/pkg install mkdir -p $startdir/pkg/usr/share/mythtv/contrib mkdir -p $startdir/pkg/etc/rc.d mkdir -p $startdir/pkg/var/log/mythtv mkdir -p $startdir/pkg/etc/profile.d install -m0755 ../myth.sh $startdir/pkg/etc/profile.d/ # install contrib mkdir -p $startdir/pkg/usr/local/share/mythtv/contrib || return 1 #cp -rp contrib/* $startdir/pkg/usr/local/share/mythtv/contrib rsync -a --exclude=.svn contrib/* $startdir/pkg/usr/local/share/mythtv/contrib echo "-release-fixes" > $startdir/pkg/usr/local/share/mythtv/.releasetype #install -m0755 themes/*.ttf $startdir/pkg/usr/local/share/mythtv/themes/ # set suid on mythfrontend # chmod a+s $startdir/pkg/usr/local/bin/mythfrontend # mkdir -p $startdir/pkg/usr/lib/ # mv $startdir/pkg/usr/local/lib/perl5 $startdir/pkg/usr/lib/perl5 cd $startdir/src/mythtv/contrib gcc -Wall -o firewire_tester firewire_tester.c -liec61883 -lraw1394 install -m0755 firewire_tester $startdir/pkg/usr/bin/firewire_tester # install -m0755 $startdir/pkg/usr/share/mythtv/contrib/optimize_mythdb.pl $startdir/pkg/usr/local/bin/optimize_mythdb.pl # cp $startdir/src/myth.find_orphans.pl $startdir/pkg/usr/share/mythtv/contrib/myth.find_orphans.pl # install -m0755 $startdir/pkg/usr/share/mythtv/contrib/myth.find_orphans.pl $startdir/pkg/usr/bin/myth.find_orphans.pl }