# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $
# Maintainer: Cecil Watson<knoppmyth@gmail.com>

pkgname=linhes-scripts
pkgver=7
pkgrel=3
pkgdesc="Various scripts that help to make LinHES, LinHES."
arch=('i686' 'x86_64')
license=('GPL2')
depends=('xosd' 'cpulimit')
url="http://linhes.org/"
install="linhes-scripts.install"
source=(
myth2xvid
shootscreens.sh
mplayer-resumer-vdpau.pl
run-pause-mythcommflag
shootscreens-mythtv.sh
importfiles.sh
myth2mp3
mplayer-resumer.pl
mythwelcome-test-wakeup.sh
pause-mythcommflag.sh
myth2x264
770-wrapper.sh
mythwelcome-set-alarm.sh
mythwelcome-config.py
pause_mythcommflag
limit-mythcommflag.sh
vdpau-detector
idle.sh
screenshooter.sh
run-limit-mythcommflag
linhes_update.sh
linhes_update2.sh
linhes_update3.sh
install_hulu.sh
update_schema_021_to_022.sh
upgrade_linhes.sh
remove_php_mythvideo.sh
removecommercials.sh
system-cleanup.sh
myth2fuze
dct700-cc.sh
qip7100-cc.sh
dtheme.sh
)

build() {
  cd ${srcdir}
  install -d ${pkgdir}/usr/LH/bin
  install -D -m755 myth2* *.sh *.pl *.py vdpau* run-* pause_* ${pkgdir}/usr/LH/bin/
  mkdir -p ${pkgdir}/etc/sv/pause-mythcommflag/supervise
  cp run-pause-mythcommflag ${pkgdir}/etc/sv/pause-mythcommflag/run
  mkdir -p ${pkgdir}/etc/sv/limit-mythcommflag/supervise
  cp run-limit-mythcommflag ${pkgdir}/etc/sv/limit-mythcommflag/run
  mkdir -p ${pkgdir}/etc/logrotate.d/
  cp pause_mythcommflag ${pkgdir}/etc/logrotate.d/
}
md5sums=('f56985b2d602e11dc1e10d3e7848b2a5'
         '448f7ff4b4acc78e2ada919d8149d014'
         '9ae2cd7a0c42d57ad8b5f515d7d60196'
         '1274bad3fb7296f00acd2d44804bad14'
         '47225fa9b6c953d56f6ede84d921a300'
         '6b6e7d34a4bda6d608d150039adefd07'
         '3fe554dbbf7d09e1f9925032ba888bf5'
         '18263972b6326e140bbef0bb7dfa2da9'
         '410795ef9039e4c6c0484e706ecfd567'
         '0750d7c65109d12aa536f312a38410d1'
         'ac2a4a6b4100f4d7bfb9ecd9356c8c6e'
         'd2b475821f902c5e081e7da43a35e6ac'
         '95c092f67036a361ef7a57436f44332e'
         '565ebca7b88bcd083322b7324f8e56e5'
         '3b776bbff68906ddc2f62b7e0dde3fe4'
         '15f3143d2b1369da431e4268029aba40'
         '3d0adf26280cde55a0c47188fff34826'
         '93aaa2940e33ec9ebb305b839ac46a3e'
         '495e44151a06b2cc13e3fa103d6b4a1e'
         'b527b01d119d3bc33b8fa69bdf1082bb'
         'c537c44156d8404016cc4b405b092d45'
         '4e66f302a77f1a857476e7f289d0c157'
         'be324dba44ae96676973a74421944853'
         'ccca6bdbbd86b203a3eecdbbe363e701'
         '65629302a4d2c3adf88cdf0ebc10d493'
         '2734054f08c4c885bb9070dce239d4c3'
         '87b0dc855181f98516acb18a7d551601'
         'c54a3afd4aa3c1af560c9b6adb600f3a'
         '2fb25aef03ffd1282414d8cca3df7056'
         'd2a29444ab9036fb385bbf044daf1ff5'
         'df727c98350a64e2171c950bbefc9c5d'
         '7b890e7044db38e8d439f67e398af206'
         '35693f50939d5827aeabfce8c5dce589')