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

pkgname=linhes-scripts
pkgver=1
pkgrel=15
pkgdesc="Various scripts that help to make LinHES, LinHES."
arch=('i686' 'x86_64')
license=('GPL2')
depends=(xosd)
url="http://linhes.org/"
source=(ftp://ftp.knoppmyth.net/R6/sources/linhes-scripts.tar.bz2)

build() {
  cd $startdir/src/
  mkdir -p $startdir/pkg/usr/LH/bin
  install -D -m755 myt2* 770* idle.sh imp* myth* shoo* pau*sh mplayer* vdpau* screen* mplayer* $startdir/pkg/usr/LH/bin
  mkdir -p $startdir/pkg/etc/sv/pause-mythcommflag/supervise
  cp run $startdir/pkg/etc/sv/pause-mythcommflag/
  mkdir -p $startdir/pkg/etc/logrotate.d/
  cp pause_mythcommflag $startdir/pkg/etc/logrotate.d/
}