blob: bf4f4047d2a99bb3001d88f1c7ad73d2eef7673f (
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
|
pkgname=mythtv
pkgver=0.23
pkgrel=26
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-----------------------------------------------"
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')
|