gta5view/.ci/debian_build.sh

39 lines
1.4 KiB
Bash
Raw Normal View History

2021-01-22 06:35:35 +01:00
#!/usr/bin/env bash
2017-12-23 07:48:01 +01:00
# Creating folders
cd ${PROJECT_DIR} && \
echo "gta5view build version is ${APPLICATION_VERSION}" && \
2018-01-18 00:31:21 +01:00
mkdir -p build && \
mkdir -p assets && \
2020-08-28 22:11:52 +02:00
chmod -x res/gta5sync_*.qm res/*.desktop res/*gta5view*.png && \
2017-12-23 07:48:01 +01:00
cd build && \
2018-01-18 00:31:21 +01:00
mkdir -p qt5 && \
2017-12-23 07:48:01 +01:00
cd qt5 && \
2018-06-03 16:10:20 +02:00
echo "Grand Theft Auto V Snapmatic and Savegame viewer/editor" > ./description-pak && \
2017-12-23 07:48:01 +01:00
cd .. && \
2020-08-30 18:48:33 +02:00
# Set compiler
export CC=clang && \
export CXX=clang++ && \
2017-12-23 07:48:01 +01:00
# Prepare checkinstall step
mkdir -p /usr/share/gta5view && \
# Starting build
cd qt5 && \
cmake \
"-DCMAKE_INSTALL_PREFIX=/usr" \
2021-01-22 06:35:35 +01:00
"${CMAKE_BUILD_TYPE}" \
"-DFORCE_QT_VERSION=5" \
"-DGTA5VIEW_BUILDCODE=${PACKAGE_CODE}" \
"-DGTA5VIEW_APPVER=${APPLICATION_VERSION}" \
"-DGTA5VIEW_COMMIT=${APPLICATION_COMMIT}" \
2021-03-26 14:58:54 +01:00
"-DWITH_DONATE=ON" \
"-DWITH_TELEMETRY=ON" \
2021-03-26 14:58:54 +01:00
"-DDONATE_ADDRESSES=$(cat ${PROJECT_DIR}/.ci/donate.txt)" \
"-DTELEMETRY_WEBURL=https://dev.syping.de/gta5view-userstats/" \
"-DQCONF_BUILD=ON" \
../../ && \
2017-12-23 07:48:01 +01:00
make -j 4 && \
2021-01-22 06:35:35 +01:00
checkinstall -D --default --nodoc --install=no --pkgname=gta5view --pkgversion=${PACKAGE_VERSION} --pkgrelease=${PACKAGE_BUILD} --pkggroup=utility --maintainer="Syping \<dpkg@syping.de\>" --requires=libqt5core5a,libqt5gui5,libqt5network5,libqt5svg5,libqt5widgets5,qttranslations5-l10n --conflicts=gta5view-qt4,gta5view-qt5 --replaces=gta5view-qt4,gta5view-qt5 --pakdir=${PROJECT_DIR}/assets