File: mkipk.sh

package info (click to toggle)
madbomber 0.2.5-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,372 kB
  • ctags: 279
  • sloc: ansic: 3,732; makefile: 119; sh: 78
file content (88 lines) | stat: -rwxr-xr-x 1,901 bytes parent folder | download | duplicates (7)
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
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/sh

# mkipk.sh
# generates an ipkg for embedded Mad Bomber

# Bill Kendrick
# bill@newbreedsoftware.com
# http://www.newbreedsoftware.com/madbomber/

# 2002.Apr.13 - 2003.Mar.16


VER=0.2.5


PACKAGE=madbomber
TMPDIR=tmp
CONTROL=$TMPDIR/CONTROL/control
ARCH=arm
RM=rm

echo "SETTING UP"
mkdir $TMPDIR
mkdir $TMPDIR/CONTROL


echo
echo "MAKING SURE BINARY EXISTS"
make clean
make embedded

echo 
echo "CREATING CONTROL FILE"

echo "Package: $PACKAGE" > $CONTROL
echo "Priority: optional" >> $CONTROL
echo "Version: $VER" >> $CONTROL
echo "Section: games" >> $CONTROL
echo "Architecture: $ARCH" >> $CONTROL
echo "Maintainer: Bill Kendrick (bill@newbreedsoftware.com)" >> $CONTROL
echo "Description: A Kaboom! clone" >> $CONTROL

echo
echo "COPYING DATA FILES"

mkdir -p $TMPDIR/opt/QtPalmtop/share/madbomber
cp -R data/sounds $TMPDIR/opt/QtPalmtop/share/madbomber
mkdir $TMPDIR/opt/QtPalmtop/share/madbomber/images
cp -R data/embedded/images/* $TMPDIR/opt/QtPalmtop/share/madbomber/images
mkdir $TMPDIR/opt/QtPalmtop/share/madbomber/music
cp -R data/embedded/music/* $TMPDIR/opt/QtPalmtop/share/madbomber/music

echo
echo "CREATING BINARIES"

mkdir -p $TMPDIR/opt/QtPalmtop/bin/
echo "madbomber" > $TMPDIR/opt/QtPalmtop/bin/madbomber.sh
cp madbomber $TMPDIR/opt/QtPalmtop/bin/
chmod 755 TMPDIR/opt/QtPalmtop/bin/madbomber.sh


echo "CREATING ICON AND DESKTOP FILE"

mkdir -p $TMPDIR/opt/QtPalmtop/pics/
cp data/images/game/bomb/bomb2.png $TMPDIR/opt/QtPalmtop/pics/madbomber.png

mkdir -p $TMPDIR/opt/QtPalmtop/apps/Games/
DESKTOP=$TMPDIR/opt/QtPalmtop/apps/Games/madbomber.desktop
echo "[Desktop Entry]" > $DESKTOP
echo "Comment=Kaboom! clone" >> $DESKTOP
echo "Exec=madbomber.sh" >> $DESKTOP
echo "Icon=madbomber" >> $DESKTOP
echo "Type=Application" >> $DESKTOP
echo "Name=Madbomber" >> $DESKTOP


echo
echo "CREATING IPK..."

ipkg-build $TMPDIR

echo
echo "CLEANING UP"

$RM -r $TMPDIR

echo