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

pkgname=linhes-scripts
pkgver=1
pkgrel=56
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
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_to_0.22.sh
remove_php_mythvideo.sh
)

build() {
  cd $startdir/src
  mkdir -p $startdir/pkg/usr/LH/bin
  install -D -m755 myt* 770* *.sh imp* shoo* *commflag*sh mplayer* vdpau* screen* linhes_* install_hulu.sh $startdir/pkg/usr/LH/bin
  mkdir -p $startdir/pkg/etc/sv/pause-mythcommflag/supervise
  cp run-pause-mythcommflag $startdir/pkg/etc/sv/pause-mythcommflag/run
  mkdir -p $startdir/pkg/etc/sv/limit-mythcommflag/supervise
  cp run-limit-mythcommflag $startdir/pkg/etc/sv/limit-mythcommflag/run
  mkdir -p $startdir/pkg/etc/logrotate.d/
  cp pause_mythcommflag $startdir/pkg/etc/logrotate.d/
}
md5sums=('f56985b2d602e11dc1e10d3e7848b2a5'
         '623b6e9ba6cc4a19771005e750f337a7'
         '9ae2cd7a0c42d57ad8b5f515d7d60196'
         '1274bad3fb7296f00acd2d44804bad14'
         'b4f858834ea92418208ab496ca39ad32'
         '6b6e7d34a4bda6d608d150039adefd07'
         '3fe554dbbf7d09e1f9925032ba888bf5'
         '18263972b6326e140bbef0bb7dfa2da9'
         '410795ef9039e4c6c0484e706ecfd567'
         '0750d7c65109d12aa536f312a38410d1'
         'ac2a4a6b4100f4d7bfb9ecd9356c8c6e'
         'd2b475821f902c5e081e7da43a35e6ac'
         '26a194301b0cfc4ca212d462a0899077'
         '3b776bbff68906ddc2f62b7e0dde3fe4'
         '85706c981e8ec2c5bb49a33538782d4c'
         '3d0adf26280cde55a0c47188fff34826'
         '93aaa2940e33ec9ebb305b839ac46a3e'
         '972e42e02a11575da91f5e051d4de1d2'
         'b527b01d119d3bc33b8fa69bdf1082bb'
         'c537c44156d8404016cc4b405b092d45'
         '4e66f302a77f1a857476e7f289d0c157'
         'be324dba44ae96676973a74421944853'
         'c9dc0dd07369622879a000247ac55074'
         '65629302a4d2c3adf88cdf0ebc10d493'
         'ea5492d4dab8271db20cb84416c001dc'
         'd7c7914225ec86bf3ea46104a364f977')