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

pkgname=linhes-scripts
pkgver=7
pkgrel=33
pkgdesc="Various scripts that help to make LinHES, LinHES."
arch=('i686' 'x86_64')
license=('GPL2')
depends=('xosd' 'cpulimit' 'screen' 'mencoder' 'tablet-encode' 'mplayer')
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
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
xwin_find.sh
upgrade_screen_rc
upgrade_linhes_script.sh
find_orphans.py
acl_fix_fstab.py 
stop_xss.sh
)

build() {
  cd ${srcdir}
  install -d ${pkgdir}/usr/LH/bin
  install -d ${pkgdir}/usr/LH/etc
  install -D -m755 myth2* *.sh *.pl *.py vdpau* run-* pause_* ${pkgdir}/usr/LH/bin/
  install -D -m755 upgrade_screen_rc ${pkgdir}/usr/LH/etc/
  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'
         '10ad1a4da669adccd01e0be6e5e4a3ed'
         '9ae2cd7a0c42d57ad8b5f515d7d60196'
         '1274bad3fb7296f00acd2d44804bad14'
         '47225fa9b6c953d56f6ede84d921a300'
         '6b6e7d34a4bda6d608d150039adefd07'
         '3fe554dbbf7d09e1f9925032ba888bf5'
         '18263972b6326e140bbef0bb7dfa2da9'
         '410795ef9039e4c6c0484e706ecfd567'
         '0750d7c65109d12aa536f312a38410d1'
         'ac2a4a6b4100f4d7bfb9ecd9356c8c6e'
         'd2b475821f902c5e081e7da43a35e6ac'
         '95c092f67036a361ef7a57436f44332e'
         '565ebca7b88bcd083322b7324f8e56e5'
         '3b776bbff68906ddc2f62b7e0dde3fe4'
         '15f3143d2b1369da431e4268029aba40'
         '3d0adf26280cde55a0c47188fff34826'
         '25dd5b8ec0482d561b481bfce051d648'
         'b2c3dd48a4abb976eda2d5fbf22a173a'
         'b527b01d119d3bc33b8fa69bdf1082bb'
         '9d077c24d102fa02e4f417d639d8b00a'
         '98979920c30bb48c02d00f6943e9e50e'
         '460861e6d0cf999629b734912eea0acf'
         '65629302a4d2c3adf88cdf0ebc10d493'
         'ab469714d77f3a29c7dda715e5ab98e0'
         '87b0dc855181f98516acb18a7d551601'
         'c54a3afd4aa3c1af560c9b6adb600f3a'
         '2fb25aef03ffd1282414d8cca3df7056'
         'd2a29444ab9036fb385bbf044daf1ff5'
         'df727c98350a64e2171c950bbefc9c5d'
         '7b890e7044db38e8d439f67e398af206'
         '35693f50939d5827aeabfce8c5dce589'
         'a94fe6d980f4b810f2e2ae5352084b39'
         '974c137d3fcb85942ba8945a1bc815fe'
         '4b8671376fad6d76874508434d42fbfd'
         'd8838461af9d446a1fd7e7883fdc75d1'
         'cc9cdabcdfc969c2829b58c0e513488c'
         'acb72dfeda6f957bfdf4113a04fb91c0')