File: build-packages-using-sibuserv.sh

package info (click to toggle)
eiskaltdcpp 2.4.2-1.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,788 kB
  • sloc: cpp: 97,597; ansic: 5,004; perl: 1,897; xml: 1,440; sh: 1,313; php: 661; javascript: 257; makefile: 39
file content (67 lines) | stat: -rwxr-xr-x 1,321 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

# Author:  Boris Pek <tehnick-8@yandex.ru>
# License: MIT (Expat)
# Created: 2019-04-01
# Updated: 2021-01-24
# Version: N/A
#
# Dependencies:
# git, rsync, find, sed, appimagetool
# MXE: https://github.com/sibuserv/lxe/tree/hobby
# Sibuserv: https://github.com/sibuserv/sibuserv
#
# Current versions of used libraries may be found here:
# https://github.com/sibuserv/lxe/blob/hobby/etc/Ubuntu-14.04_amd64_static.sh
# https://github.com/sibuserv/lxe/blob/hobby/etc/Ubuntu-14.04_i386_static.sh

set -e

export MAIN_DIR="${HOME}/Tmp/EiskaltDC++"

CUR_DIR="$(dirname $(realpath -s ${0}))"
. "${CUR_DIR}/downloads-library.sh"
. "${CUR_DIR}/common-functions.sh"

BUILD_TARGETS="Ubuntu-14.04_amd64_static Ubuntu-14.04_i386_static"

# Script body

SCRIPT_NAME="$(basename ${0})"
ShowHelp ${@}

TestInternetConnection
PrepareMainDir

echo "Getting the sources..."
echo;

GetProgramSources ${@}
GetProgramVersion ${@}

echo "Preparing to build..."
PrepareToBuildForLinux
CleanBuildDir
echo "Done."
echo;

echo "Building EiskaltDC++..."
BuildProjectUsingSibuserv
echo;

echo "Installing..."
InstallToTempDir
echo;

echo "Preparing application directories..."
PrepareAppDirs
echo "Done."
echo;

echo "Building AppImage files..."
BuildAppImageFiles
echo "Done."
echo;

echo "Builds are ready for distribution and usage!"