~ubuntu-branches/ubuntu/trusty/kajongg/trusty-proposed

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
# This script generates a tarball, a rpm package and a debian package.
# The packages do not define dependencies yet.

# License: GNU GPL V2

# Copyright 2009,2010 Wolfgang Rohdewald <wolfgang@rohdewald.de>

# Usage: Start it as superuser in the directory
# containing the svn kajongg source.

# we might want to look at http://www.infukor.com/rally7.html
# which seems to do a nice job generating a python game .deb package

rm -rf kajongg-?.?.? /var/tmp/kajongg-*
rm -rf MANIFEST dist build locale
#./compile.sh
./setup.py bdist_rpm

cd dist

# by default Debian packages compress all files in /usr/share/doc,
# we do not want that to happen with index.docbook

alien --generate --to-deb --keep-version *.noarch.rpm
cd kajongg-*
cd debian
mv rules rules.org
cat rules.org | sed 's/dh_compress/dh_compress -X.docbook/' > rules
chmod 755 rules
rm rules.org
mv control /tmp/control.org
set - `alien --version`
alienversion="$*"
cp ../../../debian.control control
cd ..

debian/rules binary
dpkg-buildpackage -us -uc
cd ../..
rm -rf MANIFEST build
cd dist
cp -a *.deb *.rpm *.tar.gz $HOME/Dokumente/H/strato/oss