summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/media_dirs/PKGBUILD
blob: 38544b39d572cac94275e95e004f5f68a60439b7 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
pkgname=media_dirs
pkgver=1
pkgrel=14
pkgdesc="creates the dir layout for mythtv to use"
url=""
license=""
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=media_dirs.install
provides=()
source=()
md5sums=()
arch=('i686')


build() {
	cd $startdir/src/
	DIR_PREFIX=myth
	while read dirname
	do
		mkdir -p "$startdir/src/$DIR_PREFIX/${dirname}"
		touch "$startdir/src/$DIR_PREFIX/${dirname}/.media"
	done <<EOF
tv
gallery
music
games/nes/roms
games/nes/screens
games/nes
games/pc/screens
games/pc
games/snes/roms
games/snes/screens
games/snes
games/xmame/cabs
games/xmame/flyers
games/xmame/hiscores
games/xmame/history
games/xmame/roms
games/xmame/screens
games/xmame
games
backup
image_cache
video/.covers
video/archive
video
motion
tmp
archive
stream
phone/Voicemail
phone/Photos
phone
pretty
video_stuff/trailers
video_stuff/coverart
video_stuff/fanart
video_stuff/screenshots
video_stuff/banners
games/screenshots
games/fanart
games/boxart
EOF


	chown -R mythtv myth
	chmod -R 777 myth
	cp -rp myth $startdir/pkg/
	cd $startdir/pkg

}