blob: 415ee4c8671a7763f09fdf2d21cd9e5c4d5c75f2 (
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
|
#!/bin/sh
# ScummVM Slackware 9(.1) Package Creation Script
# by Jay Lanagan - roni@parodius.com
CWD=`pwd`
if [ "$TMP" = "" ]; then
TMP=/tmp
fi
PKG=$TMP/package-scummvm
VERSION=0.12.0svn
ARCH=i486
BUILD=1
if [ ! -d $TMP ]; then
mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
mkdir -p $PKG
fi
cd $TMP
# tar xzvf scummvm-$VERSION.tgz
tar xzvf scummvm-$VERSION.tar.gz
# cd scummvm-$VERSION
cd scummvm
chown -R root.root .
CXXFLAGS="-O2 -march=i486 -mcpu=i686" \
./configure
make
strip scummvm
chmod 755 scummvm
mkdir -p $PKG/usr/bin
cp scummvm $PKG/usr/bin
chown -R root:bin $PKG/usr/bin
gzip -9 dists/scummvm.6
mkdir -p $PKG/usr/man/man6
cp dists/scummvm.6.gz $PKG/usr/man/man6
mkdir -p $PKG/usr/doc/scummvm-$VERSION
cp -a AUTHORS COPYING COPYRIGHT ChangeLog NEWS README TODO \
$PKG/usr/doc/scummvm-$VERSION
chmod 644 $PKG/usr/doc/scummvm-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
mkdir -p $PKG/usr/share/pixmaps
cp -a icons/scummvm.ico icons/scummvm.xpm \
$PKG/usr/share/pixmaps
mkdir -p $PKG/usr/share/applications
cp -a dists/scummvm.desktop \
$PKG/usr/share/applications
cd $PKG
makepkg -l y -c n $TMP/scummvm-$VERSION-$ARCH-$BUILD.tgz
if [ "$1" = "--cleanup" ]; then
rm -rf $TMP/scummvm-$VERSION
rm -rf $PKG
fi
|