summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-system/PKGBUILD
blob: 156d02767a6b65fe8a102f5efc5dea231d846c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pkgname=LinHES-system
pkgver=1.0
pkgrel=70
arch=('i686')
MVDIR=$startdir/pkg/usr/LH
BINDIR=$startdir/pkg/usr/bin
install=LinHES.install
pkgdesc="scripts and things related to having a automated system"
depends=(linhes-sounds xdotool)
backup=(etc/modprobe.d/alsa-base)
binfiles="LinHES-start optimize_mythdb.py myth_mtc.py myth_mtc.sh LinHES-run firstboot.sh load-modules-mythvantage.sh unclutter-toggle.sh myth_mtc.lr"

source=(LinHES-session LinHES-profile.sh $binfiles alsa-base)

build() {
        cd $startdir/src
        install -m755 -D LinHES-session $startdir/pkg/etc/X11/Sessions/LinHES
	install -m755 -D LinHES-profile.sh $startdir/pkg/etc/profile.d/LinHES-profile.sh
####### install to /usr/LH/bin
#mkdir -p $BINDIR

for i in $binfiles
do
	item=$i
	install -m755 -D $item $MVDIR/bin/$item
	echo $item

done

cd $startdir/bin
for i in *
do
	item=$i
	install -m755 -D $item $MVDIR/bin/$item
	echo $item

done	
install -m755 -D $startdir/src/alsa-base $startdir/pkg/etc/modprobe.d/alsa-base
mkdir $startdir/pkg/etc/logrotate.d
cp $startdir/myth_mtc.lr $startdir/pkg/etc/logrotate.d
}