File: mkipk.sh

package info (click to toggle)
bugsquish 0.0.6-8
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,580 kB
  • sloc: ansic: 1,546; makefile: 144; sh: 55
file content (88 lines) | stat: -rwxr-xr-x 1,941 bytes parent folder | download | duplicates (6)
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 Bugsquish

# Bill Kendrick
# bill@newbreedsoftware.com

# 2002.Apr.13 - 2002.Apr.20


VER=0.0.6


PACKAGE=bugsquish
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: Squish the bugs before they suck all your blood." >> $CONTROL

echo
echo "COPYING DATA FILES"

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

echo
echo "CREATING BINARIES"

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


echo "CREATING ICON AND DESKTOP FILE"

mkdir -p $TMPDIR/opt/QtPalmtop/pics/
cp data/images/bug1a.png $TMPDIR/opt/QtPalmtop/pics/bugsquish.png

mkdir -p $TMPDIR/opt/QtPalmtop/apps/Games/
DESKTOP=$TMPDIR/opt/QtPalmtop/apps/Games/bugsquish.desktop
echo "[Desktop Entry]" > $DESKTOP
echo "Comment=Bug squishing game" >> $DESKTOP
echo "Exec=bugsquish.sh" >> $DESKTOP
echo "Icon=bugsquish" >> $DESKTOP
echo "Type=Application" >> $DESKTOP
echo "Name=Bugsquish" >> $DESKTOP


echo
echo "CREATING IPK..."

ipkg-build $TMPDIR

echo
echo "CLEANING UP"

$RM -r $TMPDIR

echo