diff options
author | Britney Fransen <brfransen@gmail.com> | 2013-11-02 22:51:08 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2013-11-02 22:51:08 (GMT) |
commit | 570a8e42684f542d6deceffd59c4eca234ffabc7 (patch) | |
tree | dabb5f6c4f1dfdaf66358a0a630dcee2332a490f /abs/core/mythtv/stable-0.27/mythtv/PKGBUILD | |
parent | eac54d053f7fdbde04d6a821bc964e78f50d143a (diff) | |
download | linhes_pkgbuild-570a8e42684f542d6deceffd59c4eca234ffabc7.zip linhes_pkgbuild-570a8e42684f542d6deceffd59c4eca234ffabc7.tar.gz linhes_pkgbuild-570a8e42684f542d6deceffd59c4eca234ffabc7.tar.bz2 |
mythtv stable-0.27 mythtv: initial commit. refs #933
changed the name of pretty to recordings
Diffstat (limited to 'abs/core/mythtv/stable-0.27/mythtv/PKGBUILD')
-rw-r--r-- | abs/core/mythtv/stable-0.27/mythtv/PKGBUILD | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.27/mythtv/PKGBUILD b/abs/core/mythtv/stable-0.27/mythtv/PKGBUILD new file mode 100644 index 0000000..a00c869 --- /dev/null +++ b/abs/core/mythtv/stable-0.27/mythtv/PKGBUILD @@ -0,0 +1,118 @@ +pkgname=mythtv +pkgver=0.27 +pkgrel=1 +commit_hash=`cat ../git_src/git_hash` +pkgdesc="A Homebrew PVR project $commit_hash" +arch=('i686' 'x86_64') +url="http://www.mythtv.org/" +license=('GPL') +depends=('avahi' 'fftw' 'glew' 'lame' 'libass' 'libavc1394' 'libcdio' + 'libcec' 'libiec61883' 'libva' 'libvpx' 'libxinerama' 'libxml2' + 'lirc-utils' 'mysql-clients' 'mysql-python' 'openssl' + 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww' + 'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'taglib' 'urlgrabber' + 'x264' 'xmltv' + #'qt' + #'ffmpeg' + #'fribidi' + #'perl-soap-lite' + #'perl-date-manip' + #'perl-xml-sax' + #'perl-math-round' + #'perl-time-hires' + #'wget' + #'libxrandr' + #'faad2' + #'libvdpau' + #'libcrystalhd-git' + #'python-pycurl' + #'lsdvd' + #'dvdbackup' + ) +makedepends=('mesa' 'libgl' 'yasm' 'git' 'rsync') +replaces=() +groups=('pvr') +backup=() +install='mythtv.install' + +patches=(#'myth_settings.patch' + '0001-protect-metadata-loads-from-multiple-threads.patch') + #http://code.mythtv.org/trac/ticket/10825 thread safety in video metadata load + +optdepends=() +replaces=('mythvideo' 'myththemes') +conflicts=('mythvideo' 'myththemes') +source=(`echo ${patches[@]:0}` 'recordings') + +build() { + if [ -e ${srcdir}/mythtv ] + then + msg "Removing old mythtv src" + rm -rf ${srcdir}/mythtv + fi + + cd ${startdir} + msg "Copying in mythtv git_src" + cp -rp ../git_src/mythtv/mythtv $srcdir + cd ${srcdir}/$pkgname + echo "#!/bin/bash" > version.sh + + msg "--------------------------applying patches------------------------------" + for i in `echo ${patches[@]:0} ` + do + echo applying $i + echo "-----------------------------" + patch -Np2 -i ${startdir}/src/$i || return 1 + done + msg "--------------------------done applying patches-------------------------" + + msg "Configuring mythtv" + ARCH=${CARCH/_/-} + ./configure --prefix=/usr \ + --cpu=${ARCH} \ + --disable-altivec \ + --disable-audio-jack \ + --disable-audio-pulse \ + --disable-ccache \ + --disable-distcc \ + --dvb-path=/usr/include \ + --enable-libfftw3 \ + --enable-libmp3lame \ + --enable-libvpx \ + --enable-libx264 \ + --enable-vaapi \ + --python=python2 \ + --with-bindings=perl,python || return 1 + msg "Compiling mythtv" + make all || return 1 +} + +package() { + cd "${srcdir}/${pkgname}" + # basic install + make INSTALL_ROOT="${pkgdir}" install + # install contrib files + rsync -arp --exclude .svn --delete-excluded contrib ${pkgdir}/usr/share/mythtv/ || return 1 + # install database structure + rsync -arp --exclude .svn --delete-excluded database ${pkgdir}/usr/share/mythtv/ || return 1 + # install docs + rsync -arp --exclude .svn --delete-excluded docs ${pkgdir}/usr/share/mythtv/ || return 1 + + # patch the xml LinHES style + cp -r ${startdir}/menu-xml/*.xml ${pkgdir}/usr/share/mythtv/themes/defaultmenu/ + cd ${pkgdir}/usr/share/mythtv + 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 + + # make mythtv log dir for old scripts that use it + mkdir -p ${pkgdir}/var/log/mythtv + chown 1000.1000 ${pkgdir}/var/log/mythtv + + #install recordings (was pretty) + mkdir -p ${pkgdir}/etc/cron.hourly/ + install -m0755 ${srcdir}/recordings ${pkgdir}/etc/cron.hourly/ +} + +md5sums=('67f7316c750fba17fa578d10840b9dbd' + '65a08d8949431ecdeb51a686dc6f9c21') |