-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkdebian
executable file
·51 lines (39 loc) · 1.78 KB
/
mkdebian
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
#! /bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root because Lintian complains otherwise" 1>&2
exit 1
fi
mkdir -p debian/lightningbeam/usr/bin
mkdir -p debian/lightningbeam/usr/share/lightningbeam
mkdir -p debian/lightningbeam/usr/share/applications
mkdir -p debian/lightningbeam/usr/share/icons
mkdir -p debian/lightningbeam/DEBIAN
cp lightningbeam debian/lightningbeam/usr/bin/
cp lightningbeam.py debian/lightningbeam/usr/share/lightningbeam/
cp svlgui.py debian/lightningbeam/usr/share/lightningbeam/
cp codeeditor.py debian/lightningbeam/usr/share/lightningbeam/
cp misc_funcs.py debian/lightningbeam/usr/share/lightningbeam/
cp lightningbeam_windows.py debian/lightningbeam/usr/share/lightningbeam/
cp colors.py debian/lightningbeam/usr/share/lightningbeam/
cp gpl.txt debian/lightningbeam/usr/share/lightningbeam/
cp -r swfc debian/lightningbeam/usr/share/lightningbeam/
cp -r GUI debian/lightningbeam/usr/share/lightningbeam/
cp -r media debian/lightningbeam/usr/share/lightningbeam/
cp lightningbeam.desktop debian/lightningbeam/usr/share/applications/
cp media/icon_128.png debian/lightningbeam/usr/share/icons/lightningbeam.png
cp control debian/lightningbeam/DEBIAN/
#cp postrm debian/lightningbeam/DEBIAN/
#cp preinst debian/lightningbeam/DEBIAN/
#cp postinst debian/lightningbeam/DEBIAN/
#cp prerm debian/lightningbeam/DEBIAN/
echo 'media_path = "/usr/share/lightningbeam/"' > debian/lightningbeam/usr/share/lightningbeam/distpath.py
chown -R root:root debian/lightningbeam
cd debian
echo "Building debian package..."
dpkg --build lightningbeam
# Uncomment to check packages - too many errors to check right now
# lintian -c lightningbeam.deb
echo "Building RPM package..."
alien -r lightningbeam.deb
echo "Building TGZ package..."
alien -t lightningbeam.deb