From 83c5764000fddd9c5c70f59270215bdff74d2110 Mon Sep 17 00:00:00 2001 From: Aleksey Tatarov Date: Sat, 4 Jul 2020 20:24:53 +0300 Subject: [PATCH] [package] Add build debian package Closed #83 --- .travis.yml | 25 +++++++++++------ application/application.pro | 2 +- .../installed-by-dh_installdocs | 0 debian/changelog | 9 +++++++ debian/control | 13 +++++++++ debian/copyright | 27 +++++++++++++++++++ debian/rules | 10 +++++++ init_build.sh | 15 +++++++++++ 8 files changed, 92 insertions(+), 9 deletions(-) create mode 100644 debian/.debhelper/generated/rheda-messenger/installed-by-dh_installdocs create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 init_build.sh diff --git a/.travis.yml b/.travis.yml index 363cf313..c5cc8606 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,12 +11,21 @@ install: - sudo apt-get install -qq qtdeclarative5-dev build-essential script: - - qmake -v - - qmake -r - - make - - cd test/test_cpp/ - - ./rheda-test-cpp - - export QT_QPA_PLATFORM='offscreen' - - cd ../test_qml/ - - ./rheda-test-qml + - chmod +x init_build.sh + - ./init_build.sh + - export DEBEMAIL="alekseytatarv@gmail.com" + - export DEBFULLNAME="Aleksey Tatarov" + - git status + - sudo gbp dch --since 0.0.1 --ignore-branch + - VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) + - sed -i "s/.*(unknown).*/rheda-messenger (${VERSION}) UNRELEASED; urgency=medium/" debian/changelog + - sudo dpkg-buildpackage -B -us -uc + # - qmake -v + # - qmake -r + # - make + # - cd test/test_cpp/ + # - ./rheda-test-cpp + # - export QT_QPA_PLATFORM='offscreen' + # - cd ../test_qml/ + # - ./rheda-test-qml diff --git a/application/application.pro b/application/application.pro index b4c440b4..a3e7ab67 100644 --- a/application/application.pro +++ b/application/application.pro @@ -24,7 +24,7 @@ QML_IMPORT_PATH = QML_DESIGNER_IMPORT_PATH = qnx: target.path = /tmp/$${TARGET}/bin -else: unix:!android: target.path = /opt/$${TARGET}/bin +else: unix:!android: target.path = /usr/bin !isEmpty(target.path): INSTALLS += target android: include($$(HOME)/Android/Sdk/android_openssl/openssl.pri) diff --git a/debian/.debhelper/generated/rheda-messenger/installed-by-dh_installdocs b/debian/.debhelper/generated/rheda-messenger/installed-by-dh_installdocs new file mode 100644 index 00000000..e69de29b diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..e21791d1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,9 @@ +rheda-messenger (0.0.1) UNRELEASED; urgency=medium + + [ Aleksey ] + * + + [ Aleksey Tatarov ] + * [package] Add build debian package Closed #83 + + -- Aleksey Sun, 05 Jul 2020 19:34:21 +0300 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..acf4aee8 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: rheda-messenger +Section: misc +Priority: optional +Maintainer: Aleksey Tatarov +Build-Depends: debhelper-compat (= 12) +Standards-Version: 4.4.1 +Homepage: https://github.com/omarcompany/rheda-messenger + +Package: rheda-messenger +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..77cc192b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Upstream-Name: rheda-messenger +Upstream-Contact: +Source: + +Files: * +Copyright: <2020> + <2020> + <2020> +License: GPL-2+ +Files: debian/* +Copyright: 2020 Aleksey +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..45f83f97 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 +#export DH_OPTIONS=-v +# This is the debhelper compatability version to use. + +#export DH_COMPAT=3 +override_dh_auto_configure: + qmake application/application.pro +%: + dh $@ diff --git a/init_build.sh b/init_build.sh new file mode 100644 index 00000000..2af80b6c --- /dev/null +++ b/init_build.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +sudo apt-get install -y dpkg debconf debhelper lintian git-buildpackage + +#make distclean + +#export DEBEMAIL="alekseytatarv@gmail.com" +#export DEBFULLNAME="Aleksey Tatarov" + +#gbp dch --since 0.0.1 --ignore-branch +#echo "----------------------create changelog------------------------------" +#VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) +#sed -i "s/.*(unknown).*/rheda-messenger (${VERSION}) UNRELEASED; urgency=medium/" debian/changelog + +#dpkg-buildpackage -us -uc