blob: 0ec861910c9462eb06a7fb7b5a65aa219d47e69a (
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
|
pkgname=media_dirs
pkgver=1
pkgrel=16
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
pretty
video_stuff/trailers
video_stuff/coverart
video_stuff/fanart
video_stuff/screenshots
video_stuff/banners
games/screenshots
games/fanart
games/boxart
system_backups/restore
EOF
chown -R 1000 myth
chmod -R 777 myth
cp -rp myth $startdir/pkg/
cd $startdir/pkg
}
|