Skip to content

Commit

Permalink
[package] Add build debian package Closed #83
Browse files Browse the repository at this point in the history
  • Loading branch information
atatarov committed Jul 5, 2020
1 parent ba6a73d commit 83c5764
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 9 deletions.
25 changes: 17 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]"
- 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

2 changes: 1 addition & 1 deletion application/application.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Empty file.
9 changes: 9 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rheda-messenger (0.0.1) UNRELEASED; urgency=medium

[ Aleksey ]
*

[ Aleksey Tatarov ]
* [package] Add build debian package Closed #83

-- Aleksey <aleksey@aleksey-Lenovo-IdeaPad-S540-13API> Sun, 05 Jul 2020 19:34:21 +0300
13 changes: 13 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Source: rheda-messenger
Section: misc
Priority: optional
Maintainer: Aleksey Tatarov <[email protected]>
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: <The simple messenger to send messages>
<The simple messenger to send messages and get messages>
27 changes: 27 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Upstream-Name: rheda-messenger
Upstream-Contact: <Aleksey Tatarov [email protected]>
Source: <url://github.com/omarcompany/rheda-messenger>

Files: *
Copyright: <2020> <Danil Rostovcev [email protected]>
<2020> <Sergey Samohin [email protected]>
<2020> <Valentin Veremchuk [email protected]>
License: GPL-2+
Files: debian/*
Copyright: 2020 Aleksey <[email protected]>
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 <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
10 changes: 10 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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 $@
15 changes: 15 additions & 0 deletions init_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash

sudo apt-get install -y dpkg debconf debhelper lintian git-buildpackage

#make distclean

#export DEBEMAIL="[email protected]"
#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

0 comments on commit 83c5764

Please sign in to comment.