blob: 47cdedde1360c3e4e5c0f1bc85857f84729afdb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
pkgname=mythtv
pkgver=0.22
pkgrel=23247
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')
conflicts=('mythtv-0.21' 'mythtv-svn')
replaces=()
groups=('pvr')
#backup=()
#options=(!strip)
#MAKEFLAGS="-j6"
install='mythtv.install'
patchs=('menutheme_fallback.patch')
#patchs=('smolt_jump.patch')
source=('mythbackend' 'myth.sh' `echo ${patchs[@]:0}` 'mythbackend.lr' 'mythfrontend.lr' 'pretty')
arch=('i686' 'x86_64')
#md5sums=()
_svntrunk=http://cvs.mythtv.org/svn/branches/release-0-22-fixes/mythtv
_svnver=23247
_svnmod=mythtv
build() {
# get clean copy from SVN repo
svn co $_svntrunk --config-dir ./ -r $_svnver $_svnmod
svn revert -R $_svnmod
cd $startdir/src/mythtv
# 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-----------------------------------------------"
sed -i -e "s/\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`/$_svnver/" 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-arts || 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
# cp ../QUICKSTART.archlinux $startdir/pkg/usr/share/mythtv/ || return 1
# install contrib
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/
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
#create new for those that still want live-tv on top
mkdir -p $startdir/pkg/usr/share/mythtv/themes/LiveTV
cp $startdir/menu-xml/themeinfo.xml-tv $startdir/pkg/usr/share/mythtv/themes/LiveTV/themeinfo.xml
cp $startdir/pkg/usr/share/mythtv/themes/defaultmenu/mainmenu.xml $startdir/pkg/usr/share/mythtv/themes/LiveTV/
cd $startdir/pkg/usr/share/mythtv/themes/LiveTV/
patch -p5 < $startdir/menu-xml/mainmenu.tv.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/
}
|