2017-12-23 07:48:01 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Creating folders
|
2018-01-16 00:13:08 +01:00
|
|
|
cd ${PROJECT_DIR} && \
|
|
|
|
echo "gta5view build version is ${APPLICATION_VERSION}" && \
|
2018-01-18 00:31:21 +01:00
|
|
|
mkdir -p build && \
|
|
|
|
mkdir -p assets && \
|
2017-12-23 07:48:01 +01:00
|
|
|
chmod -x res/gta5sync_*.qm res/gta5view.desktop res/gta5view.png && \
|
|
|
|
cd build && \
|
2018-01-18 00:31:21 +01:00
|
|
|
mkdir -p qt4 && \
|
2017-12-23 07:48:01 +01:00
|
|
|
cd qt4 && \
|
2018-01-17 19:06:39 +01:00
|
|
|
echo "Grand Theft Auto V Snapmatic and Savegame viewer/manager" > ./description-pak && \
|
2017-12-23 07:48:01 +01:00
|
|
|
cd .. && \
|
2018-01-18 00:31:21 +01:00
|
|
|
mkdir -p qt5 && \
|
2017-12-23 07:48:01 +01:00
|
|
|
cd qt5 && \
|
2018-01-17 19:06:39 +01:00
|
|
|
echo "Grand Theft Auto V Snapmatic and Savegame viewer/manager" > ./description-pak && \
|
2017-12-23 07:48:01 +01:00
|
|
|
cd .. && \
|
|
|
|
|
|
|
|
# Prepare checkinstall step
|
|
|
|
mkdir -p /usr/share/gta5view && \
|
|
|
|
|
|
|
|
# Starting build
|
|
|
|
cd qt5 && \
|
2018-06-02 07:26:56 +02:00
|
|
|
qmake -qt=5 -spec linux-clang GTA5SYNC_PREFIX=/usr QMAKE_CXXFLAGS+=-std=gnu++11 ${QMAKE_FLAGS_QT5} DEFINES+=GTA5SYNC_BUILDTYPE_DEV "DEFINES+=GTA5SYNC_BUILDCODE=\\\\\\\"${PACKAGE_CODE}\\\\\\\"" "DEFINES+=GTA5SYNC_APPVER=\\\\\\\"${APPLICATION_VERSION}\\\\\\\"" DEFINES+=GTA5SYNC_QCONF DEFINES+=GTA5SYNC_TELEMETRY "DEFINES+=GTA5SYNC_TELEMETRY_WEBURL=\\\\\\\"https://dev.syping.de/gta5view-userstats/\\\\\\\"" ../../gta5view.pro && \
|
2017-12-23 07:48:01 +01:00
|
|
|
make -j 4 && \
|
2018-01-16 00:13:08 +01:00
|
|
|
checkinstall -D --default --nodoc --install=no --pkgname=gta5view-qt5 --pkgversion=${PACKAGE_VERSION} --pkgrelease=${PACKAGE_BUILD} --pkggroup=utility --maintainer="Syping \<dpkg@syping.de\>" --requires=libqt5core5a,libqt5gui5,libqt5network5,libqt5widgets5,qttranslations5-l10n --conflicts=gta5view,gta5view-qt4 --replaces=gta5view,gta5view-qt4 --pakdir=${PROJECT_DIR}/assets && \
|
2017-12-23 07:48:01 +01:00
|
|
|
cd .. && \
|
|
|
|
cd qt4 && \
|
2018-06-02 07:26:56 +02:00
|
|
|
qmake -qt=4 GTA5SYNC_PREFIX=/usr QMAKE_CXXFLAGS+=-std=gnu++11 ${QMAKE_FLAGS_QT4} DEFINES+=GTA5SYNC_BUILDTYPE_DEV "DEFINES+=GTA5SYNC_BUILDCODE=\\\\\\\"${PACKAGE_CODE}\\\\\\\"" "DEFINES+=GTA5SYNC_APPVER=\\\\\\\"${APPLICATION_VERSION}\\\\\\\"" DEFINES+=GTA5SYNC_QCONF ../../gta5view.pro && \
|
2017-12-23 07:48:01 +01:00
|
|
|
make -j 4 && \
|
2018-01-16 00:13:08 +01:00
|
|
|
checkinstall -D --default --nodoc --install=no --pkgname=gta5view-qt4 --pkgversion=${PACKAGE_VERSION} --pkgrelease=${PACKAGE_BUILD} --pkggroup=utility --maintainer="Syping \<dpkg@syping.de\>" --requires=libqtcore4,libqtgui4,libqt4-network,qtcore4-l10n --conflicts=gta5view,gta5view-qt5 --replaces=gta5view,gta5view-qt5 --pakdir=${PROJECT_DIR}/assets
|