diff --git a/.travis.yml_disabled b/.travis.yml_disabled new file mode 100644 index 0000000..61678c0 --- /dev/null +++ b/.travis.yml_disabled @@ -0,0 +1,37 @@ +sudo: required +services: +- docker +addons: + apt: + packages: + - realpath +install: +- docker pull ubuntu:bionic +- wget https://raw.githubusercontent.com/nomad-desktop/nxos-repository-util/master/nxos-repository-util.sh + -O nxos-repository-util.sh +- chmod +x nxos-repository-util.sh +script: +- docker run --rm -v $(pwd)/:/build/ -w /build/ ubuntu:bionic /bin/bash travis-build.sh +branches: + only: + - master + - development +deploy: +- provider: script + script: "./source/nxos-repository-util.sh upload testing *.deb" + skip_cleanup: true + on: + branch: master +- provider: script + script: "./source/nxos-repository-util.sh upload development *.deb" + skip_cleanup: true + on: + branch: development +notifications: + email: false + slack: + secure: VqgBtVbk5BI3WjC2PSheCKALkiiLTxakxbVN+V4U9nm91ZP4fXxCd1Oyv+Xh9z/e1hX1PS+dMlhGsBdZr+L+QFjzqFnVTrEpxeQ/CBeMriWvpyNKlHLzxgxvT2rFZWEBEU5VKQQF/DIXvKK459MjIZEixnNlmy4gRGOJTjsq3R04kihz09yFV4vnToSmjFpoRG0ju1wDx94JMY4WllQ3+7Q6dUBWsByl0GBpa9O7ze4i2IL7TByCK/sfXcAckNHU1V3BblRA3NTdJHkLUGK8ftIcPahvwqDb6AcfcMs/4N6N6MlamtxJoSoBobGnwSaShEvJE8h2hTMfbOmBZk0Ajr4SMqmLG7RTEZELWbg3TsaROXpVRmrkMnqYcJPlwB679Outbon64vr2fMOJj6ojCEjzPRF+pZ2XdZsYBKkVx2+Pxs5bHpoB1snn2CYnG0Gpbg75U09nQKTcNrOgkDCKAo2j5ibyeJgWcBASiDRATTx9pttoKe/4bzqj90qC5zCho6GQd3rxWcs8P6lTN7M7fnt4MwomAnFlaM4VtoYFH5gC8jurFlX0ctkP6jFAjas39ztLZp/8cvsMNzQQhFeVAYDHwdxE/bdjz88SC0ntTi+ckKaYWmCXRAYAfI836/kQmRbsJtHqQ73vyZjbAWV5FH1m7yI1NgSy2IF7oHw8p6M= +env: + global: + - secure: WiUg/WtCjSUfyWV1vWMwQT8YIS2sI0e+0Cp0hc+nIHVey/ztF1N1zuHUZOES7HddzfX5dN3uGzhE5SnbPs87WJYd41sPHcOcndgCItKl1r10vLHYvcnJZq5ItOTAIZE3f81DYO3RRfrXJLbEPzTnK4SjD/0xv8ZTA+A0dyVOejy0LqUUpIoI6W4q9wjd+Nq8EwTaT7PcKsW0Z4p4XCOXkZ3iQdiGnRuvtistkJw7Jh8Y+cISDymHEk+vXicpxXUkw9KVSXw02YfL1K5HS52/+ZrrPj4CloupgaYngtNHGvcwsuAh3KFnYkZW9QOHk1a3KCi+Nlbb2ppvFth0MGSXA4UyCLEXls2P3dCSx1PsghXDnRVqDciezVDbZPB1i4beULTJBPmJRtgZepjZsdr9EphMSmJ2PFZ5hg53dTvdbYJZdLyVvI/MlTxbepcXPftL9tfLCjJSbOhKWD4Ol9iavxnCyUcmAji9UDeWhV8PHekkjTiQgixxaIeXhAfhZh6JwPV2Gd5N5bUeGyheBgViqd0WsHaBOfPI7Uv1xfXCAnEc0ft4HkAc5EiZbJdat7GSgHcpmLverGwLi33lkKeiCFQNkMcD3fjh4H+SXXsoK4RwbZt+zpCWK6t9s/9n7Xspj6j/NOjdUkiPfwKXraAICr1r5+eDPW9kM7ABwG3/dqg= + - secure: rGXwNt1KVvCmk9cHEmUuDYQlxesC65XD9gzSSbMRNAMKxGs4WTFT6Hm6vN3EWKjhXxsGOBw9vk4rjlGF/FNAUW3ZJvGne16mzJfDN6/nwvRmHer7sTS37L44VpXVSQJaR5+LbKunY2XgttpJz0UHx2SU8RniLIw8N+i2DP2FqASW59P68DpyDP65HSWnHlFMZziW/eddY2Aye16zaPD8OrAA/0z6t/6rDy3//GE1NSs/0GQuTlP+xusbxhtIG/OqI1UiZ2Hhodr+Kgvqt+saA48CQhDjWxvLUHev32fRTSMHvu74dp8DuqyqlMGJ3zkjCbTaU2ppS3tdgQJwdltMvr+CvHnV91V2WKU+VVGwjhwQpa9WbWvUI2oQEwaFynH4Bp/OivDI7wzd5Cm2rTS2JzhcNS9ZTAjtWpSdgmU34XIIO4+qBdzcwY5V2MZQciUAD/YTJujKUNQ0meau+rgCUzMEVKtiClFjQUzg2aFca+HBbeyfbHeIFNfXNUI3mt8NH4O7h9vw1BRP5NU1R/A/VP+SkDEJEyXqHdRgSc/MkxzYICw2SlAdjxDiny/uBoTHgGauNA6UWbMsy/GyFbg9W9uq9DcESTNjUxMa//A2RxykhAaeCu7mt4o+lHGL9UeME6n2xQC7fo1kEcKp3e2zyKPPLhxbMG9tdxrEgaMXpi4= diff --git a/buho_debian.tar b/buho_debian.tar new file mode 100644 index 0000000..0b7fb25 Binary files /dev/null and b/buho_debian.tar differ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f238cde --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +buho (0+git20181114-1) UNRELEASED; urgency=medium + + * Initial release + + -- Jonah Brüchert Wed, 14 Nov 2018 15:47:04 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..feb50d3 --- /dev/null +++ b/debian/control @@ -0,0 +1,32 @@ +Source: buho +Section: utils +Priority: optional +Maintainer: Jonah Brüchert +Build-Depends: debhelper (>= 11), + libkf5config-dev (>= 5.24.0~), + libkf5coreaddons-dev (>= 5.24.0~), + libkf5i18n-dev (>= 5.24.0~), + libkf5kio-dev, + libkf5notifications-dev (>= 5.24.0~), + libkf5service-dev (>= 5.24.0~), + libqt5svg5-dev, + mauikit-dev, + qt5-qmake, + qtbase5-dev (>= 5.5.0~), + qtdeclarative5-dev, + qtquickcontrols2-5-dev, + qtwebengine5-dev +Standards-Version: 4.2.1 +Homepage: https://github.com/maui-project/buho +Vcs-Browser: https://gitlab.com/debian-pm/buho +Vcs-Git: https://gitlab.com/debian-pm/buho.git + +Package: buho +Architecture: any +Depends: qml-module-org-kde-mauikit, + qml-module-qmltermwidget, + ${misc:Depends}, + ${shlibs:Depends} +Description: Maui Note Taking App + Buho allows you to save links, write quick notes and organize pages as books. + Buho works on desktops, Android and Plasma Mobile. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..94eb169 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: buho +Source: https://github.com/maui-project/buho + +Files: * +Copyright: 2018, Camilo Higuita +License: GPL-3+ + +Files: debian/* +Copyright: 2018, Jonah Brüchert +License: GPL-2+ + +License: GPL-2+ + This program 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; version 2 dated June, 1991, or (at + your option) any later version. + On Debian systems, the complete text of version 2 of the GNU General + Public License can be found in '/usr/share/common-licenses/GPL-2'. + +License: GPL-3+ + This program 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; version 3 dated June, 2007, or (at + your option) any later version. + On Debian systems, the complete text of version 3 of the GNU General + Public License can be found in '/usr/share/common-licenses/GPL-3'. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8f92f1a --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export QT_SELECT=qt5 + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/main.qml b/main.qml index 4419a47..9d6265e 100644 --- a/main.qml +++ b/main.qml @@ -1,230 +1,236 @@ import QtQuick 2.9 import QtQuick.Controls 2.2 import org.kde.kirigami 2.7 as Kirigami import org.kde.mauikit 1.0 as Maui import "src/widgets" import "src/views/notes" import "src/views/links" import "src/views/books" Maui.ApplicationWindow { id: root title: qsTr("Buho") /***** PROPS *****/ // altToolBars: false /**** BRANDING COLORS ****/ // menuButton.colorScheme.highlightColor: accentColor // searchButton.colorScheme.highlightColor: accentColor + headBarBGColor: viewBackgroundColor headBarFGColor: textColor accentColor : "#ff9494" // highlightColor: accentColor altColorText : "white"/*Qt.darker(accentColor, 2.5)*/ about.appDescription: qsTr("Buho allows you to take quick notes, collect links and take long notes organized by chapters.") about.appIcon: "qrc:/buho.svg" property int currentView : views.notes readonly property var views : ({ notes: 0, links: 1, books: 2, tags: 3, search: 4 }) property color headBarTint : Qt.lighter(headBarBGColor, 1.25) - headBar.middleContent: [ - ToolButton - { - onClicked: currentView = views.notes - icon.color: active ? accentColor : textColor - Kirigami.Theme.highlightColor: accentColor - icon.name: "view-notes" - text: qsTr("Notes") - checked: currentView === views.notes - }, - - ToolButton - { - onClicked: currentView = views.links - icon.color: active ? accentColor : textColor - Kirigami.Theme.highlightColor: accentColor - icon.name: "view-links" - text: qsTr("Links") - checked: currentView === views.links - }, - - ToolButton - { - onClicked: currentView = views.books - icon.color: active? accentColor : textColor - Kirigami.Theme.highlightColor: accentColor - icon.name: "view-books" - text: qsTr("Books") - checked: currentView === views.books - }, - - ToolButton - { - icon.color: active ? accentColor : textColor - Kirigami.Theme.highlightColor: accentColor - icon.name: "tag" - text: qsTr("Tags") - checked: currentView === views.tags - } - ] + + headBar.middleContent: Kirigami.ActionToolBar + { + actions: [ + Kirigami.Action + { + onTriggered: currentView = views.notes + icon.color: checked ? accentColor : textColor + Kirigami.Theme.highlightColor: accentColor + Kirigami.Theme.textColor: accentColor + icon.name: "view-notes" + text: qsTr("Notes") + checked: currentView === views.notes + }, + + Kirigami.Action + { + onTriggered: currentView = views.links + icon.color: checked ? accentColor : textColor + Kirigami.Theme.highlightColor: accentColor + icon.name: "view-links" + text: qsTr("Links") + checked: currentView === views.links + }, + + Kirigami.Action + { + onTriggered: currentView = views.books + icon.color: checked? accentColor : textColor + Kirigami.Theme.highlightColor: accentColor + icon.name: "view-books" + text: qsTr("Books") + checked: currentView === views.books + }, + + Kirigami.Action + { + icon.color: checked ? accentColor : textColor + Kirigami.Theme.highlightColor: accentColor + icon.name: "tag" + text: qsTr("Tags") + checked: currentView === views.tags + } + ] + } // headBar.colorScheme.borderColor: Qt.darker(accentColor, 1.4) headBar.drawBorder: false headBar.implicitHeight: toolBarHeight * 1.5 Rectangle { z: 999 anchors.right: parent.right anchors.bottom: parent.bottom anchors.margins: space.medium anchors.bottomMargin: toolBarHeight height: toolBarHeight width: height color: accentColor radius: radiusV Maui.PieButton { id: addButton anchors.fill : parent icon.name: "list-add" icon.color: altColorText barHeight: parent.height alignment: Qt.AlignLeft content: [ ToolButton { icon.name: "view-notes" onClicked: newNote() }, ToolButton { icon.name: "view-links" onClicked: newLink() }, ToolButton { icon.name: "view-books" } ] } } Maui.SyncDialog { id: syncDialog } mainMenu: [ MenuItem { text: qsTr("Syncing") onTriggered: syncDialog.open() } ] // /***** COMPONENTS *****/ NewNoteDialog { id: newNoteDialog onNoteSaved: notesView.list.insert(note) } NewNoteDialog { id: editNote onNoteSaved: notesView.list.update(note, notesView.currentIndex) } NewLinkDialog { id: newLinkDialog onLinkSaved: linksView.list.insert(link) } // /***** VIEWS *****/ SwipeView { id: swipeView anchors.fill: parent currentIndex: currentView onCurrentIndexChanged: { currentView = currentIndex if(currentView === views.notes) accentColor = "#ff9494" else if(currentView === views.links) accentColor = "#25affb" else if(currentView === views.books) accentColor = "#6bc5a5" } interactive: isMobile NotesView { id: notesView onNoteClicked: setNote(note) } LinksView { id: linksView onLinkClicked: previewLink(link) } BooksView { id: booksView } } function newNote() { currentView = views.notes newNoteDialog.open() } function newLink() { currentView = views.links newLinkDialog.open() } function setNote(note) { var tags = notesView.list.getTags(notesView.currentIndex) note.tags = tags notesView.currentNote = note editNote.fill(note) } function previewLink(link) { var tags = linksView.list.getTags(linksView.currentIndex) link.tags = tags linksView.previewer.show(link) } } diff --git a/src/views/notes/NotesView.qml b/src/views/notes/NotesView.qml index b5c9204..51f9ead 100644 --- a/src/views/notes/NotesView.qml +++ b/src/views/notes/NotesView.qml @@ -1,246 +1,246 @@ import QtQuick 2.9 import QtQuick.Controls 2.3 import QtQuick.Layouts 1.3 import org.kde.mauikit 1.0 as Maui import org.kde.kirigami 2.2 as Kirigami import BuhoModel 1.0 import Notes 1.0 import OWL 1.0 //To get the enums import "../../widgets" Maui.Page { property var currentNote : ({}) property alias cardsView : cardsView property alias model : notesModel property alias list : notesList property alias currentIndex : cardsView.currentIndex signal noteClicked(var note) padding: space.big headBar.drawBorder: false headBar.visible: !cardsView.holder.visible title : cardsView.count + " notes" headBar.leftContent: [ ToolButton { icon.name: cardsView.gridView ? "view-list-details" : "view-list-icons" onClicked: { cardsView.gridView = !cardsView.gridView } } ] headBar.rightContent: [ ToolButton { icon.name: "view-sort" onClicked: sortMenu.open(); Menu { id: sortMenu parent: parent MenuItem { text: qsTr("Ascedent") - checkable: true + checkable: false checked: notesList.order === Notes.ASC onTriggered: notesList.order = Notes.ASC } MenuItem { text: qsTr("Descendent") - checkable: true + checkable: false checked: notesList.order === Notes.DESC onTriggered: notesList.order = Notes.DESC } MenuSeparator{} MenuItem { text: qsTr("Title") - checkable: true + checkable: false checked: notesList.sortBy === KEY.TITLE onTriggered: notesList.sortBy = KEY.TITLE } MenuItem { text: qsTr("Color") checkable: true checked: notesList.sortBy === KEY.COLOR onTriggered: notesList.sortBy = KEY.COLOR } MenuItem { text: qsTr("Add date") - checkable: true + checkable: false checked: notesList.sortBy === KEY.ADD_DATE onTriggered: notesList.sortBy = KEY.ADD_DATE } MenuItem { text: qsTr("Updated") - checkable: true + checkable: false checked: notesList.sortBy === KEY.UPDATED onTriggered: notesList.sortBy = KEY.UPDATED } MenuItem { text: qsTr("Fav") - checkable: true + checkable: false checked: notesList.sortBy === KEY.FAV onTriggered: notesList.sortBy = KEY.FAV } } }, ToolButton { id: pinButton icon.name: "edit-pin" checkable: true icon.color: checked ? highlightColor : textColor } ] Notes { id: notesList } BuhoModel { id: notesModel list: notesList } ColumnLayout { anchors.fill: parent spacing: 0 Rectangle { visible: pinButton.checked Layout.alignment: Qt.AlignVCenter Layout.fillWidth: true height: cardsView.itemHeight CardsList { id: pinnedList height: parent.height *0.9 width: parent.width * 0.9 anchors.centerIn: parent itemHeight: cardsView.itemHeight * 0.9 itemWidth: itemHeight * 1.5 onItemClicked: noteClicked(cardsView.model.get(index)) } color: altColor radius: radiusV border.color: Qt.darker(altColor, 1.4) } CardsView { id: cardsView Layout.fillHeight: true Layout.fillWidth: true width: parent.width holder.emoji: "qrc:/Type.png" holder.emojiSize: iconSizes.huge holder.isMask: false holder.title : "No notes!" holder.body: "Click here to create a new note" model: notesModel delegate: CardDelegate { id: delegate cardWidth: Math.min(cardsView.cellWidth, cardsView.itemWidth) - Kirigami.Units.largeSpacing * 2 cardHeight: cardsView.itemHeight anchors.left: parent.left anchors.leftMargin: cardsView.width <= cardsView.itemWidth ? 0 : (index % 2 === 0 ? Math.max(0, cardsView.cellWidth - cardsView.itemWidth) : cardsView.cellWidth) onClicked: { currentIndex = index currentNote = notesList.get(index) noteClicked(currentNote) } onRightClicked: { currentIndex = index currentNote = notesList.get(index) cardsView.menu.popup() } onPressAndHold: { currentIndex = index currentNote = notesList.get(index) cardsView.menu.popup() } } Connections { target: cardsView.holder onActionTriggered: newNote() } Connections { target: cardsView.menu onOpened: { cardsView.menu.isFav = currentNote.fav == 1 cardsView.menu.isPin = currentNote.pin == 1 } onDeleteClicked: notesList.remove(cardsView.currentIndex) onColorClicked: { notesList.update(({"color": color}), cardsView.currentIndex) } onFavClicked: { notesList.update(({"fav": fav}), cardsView.currentIndex) } onPinClicked: { notesList.update(({"pin": pin}), cardsView.currentIndex) } onCopyClicked: { Maui.Handy.copyToClipboard(currentNote.title+"\n"+currentNote.body) } } } } } diff --git a/src/widgets/NewNoteDialog.qml b/src/widgets/NewNoteDialog.qml index 0799caf..f9f8ba8 100644 --- a/src/widgets/NewNoteDialog.qml +++ b/src/widgets/NewNoteDialog.qml @@ -1,232 +1,233 @@ import QtQuick 2.9 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.0 import org.kde.mauikit 1.0 as Maui import org.kde.kirigami 2.6 as Kirigami Maui.Dialog { id: control parent: parent heightHint: 0.95 widthHint: 0.95 maxWidth: 700*unit maxHeight: maxWidth property string selectedColor : "#ffffe6" property string fgColor: Qt.darker(selectedColor, 3) property bool showEditActions : false rejectButton.visible: false signal noteSaved(var note) page.padding: 0 colorScheme.backgroundColor: selectedColor colorScheme.textColor: fgColor headBar.leftContent: [ ToolButton { icon.name: "edit-undo" enabled: editor.body.canUndo onClicked: editor.body.undo() opacity: enabled ? 1 : 0.5 icon.color: control.colorScheme.textColor }, ToolButton { icon.name: "edit-redo" enabled: editor.body.canRedo onClicked: editor.body.redo() opacity: enabled ? 1 : 0.5 icon.color: control.colorScheme.textColor }, ToolButton { icon.name: "format-text-bold" focusPolicy: Qt.TabFocus icon.color: checked ? highlightColor : control.colorScheme.textColor checkable: true checked: editor.document.bold onClicked: editor.document.bold = !editor.document.bold }, ToolButton { icon.name: "format-text-italic" icon.color: checked ? highlightColor : control.colorScheme.textColor focusPolicy: Qt.TabFocus checkable: true checked: editor.document.italic onClicked: editor.document.italic = !editor.document.italic }, ToolButton { icon.name: "format-text-underline" icon.color: checked ? highlightColor : control.colorScheme.textColor focusPolicy: Qt.TabFocus checkable: true checked: editor.document.underline onClicked: editor.document.underline = !editor.document.underline }, ToolButton { icon.name: "format-text-uppercase" icon.color: checked ? highlightColor : control.colorScheme.textColor focusPolicy: Qt.TabFocus checkable: true checked: editor.document.uppercase onClicked: editor.document.uppercase = !editor.document.uppercase }, ToolButton { icon.name: "image" icon.color: control.colorScheme.textColor } ] headBar.rightContent: ColorsBar { onColorPicked: selectedColor = color } footBar.leftContent: [ ToolButton { id: pinButton icon.name: "edit-pin" checkable: true icon.color: checked ? highlightColor : control.colorScheme.textColor // onClicked: checked = !checked }, ToolButton { id: favButton icon.name: "love" checkable: true icon.color: checked ? "#ff007f" : control.colorScheme.textColor }, ToolButton { icon.name: "document-share" onClicked: isAndroid ? Maui.Android.shareText(editor.body.text) : shareDialog.show(editor.body.text) icon.color: control.colorScheme.textColor }, ToolButton { icon.name: "document-export" icon.color: control.colorScheme.textColor }, ToolButton { icon.name: "entry-delete" icon.color: control.colorScheme.textColor } ] acceptText: qsTr("Save") rejectText: qsTr("Discard") onAccepted: { if(editor.body.text.length > 0) packNote() clear() } onRejected: clear() ColumnLayout { anchors.fill: parent TextField { id: title Layout.fillWidth: true Layout.margins: space.medium height: 24 placeholderText: qsTr("Title") font.weight: Font.Bold font.bold: true font.pointSize: fontSizes.large color: fgColor background: Rectangle { color: "transparent" } } Maui.Editor { id: editor Layout.fillHeight: true Layout.fillWidth: true Kirigami.Theme.backgroundColor: selectedColor Kirigami.Theme.textColor: control.colorScheme.textColor headBar.visible: false } Maui.TagsBar { id: tagBar Layout.fillWidth: true allowEditMode: true list.abstract: true list.key: "notes" onTagsEdited: list.updateToAbstract(tags) onTagRemovedClicked: list.removeFromAbstract(index) Kirigami.Theme.backgroundColor: "transparent" Kirigami.Theme.textColor: control.colorScheme.textColor + } } onOpened: if(isMobile) editor.body.forceActiveFocus() function clear() { title.clear() editor.body.clear() close() } function fill(note) { title.text = note.title editor.body.text = note.body selectedColor = note.color pinButton.checked = note.pin == 1 favButton.checked = note.fav == 1 tagBar.list.lot= note.id open() } function packNote() { noteSaved({ id: notesView.currentNote.id, title: title.text.trim(), body: editor.body.text, color: selectedColor, tag: tagBar.getTags(), pin: pinButton.checked ? 1 : 0, fav: favButton.checked ? 1 : 0, updated: new Date() }) } } diff --git a/travis-build.sh b/travis-build.sh new file mode 100755 index 0000000..187aa9f --- /dev/null +++ b/travis-build.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +apt-get --yes update +apt-get --yes install wget gnupg2 + +### Add KDENeon Repository +echo 'deb http://archive.neon.kde.org/dev/stable/ bionic main' | tee /etc/apt/sources.list.d/neon-stable.list +wget -qO - 'http://archive.neon.kde.org/public.key' | apt-key add - + +### Install Dependencies +apt-get --yes update +apt-get --yes dist-upgrade +apt-get --yes install devscripts lintian build-essential automake autotools-dev equivs qt5-default qtdeclarative5-dev qtquickcontrols2-5-dev qtwebengine5-dev cmake debhelper extra-cmake-modules libkf5config-dev libkf5coreaddons-dev libkf5i18n-dev libkf5kio-dev libkf5notifications-dev libkf5service-dev libqt5svg5-dev qtbase5-dev qml-module-org-kde-kirigami2 qml-module-qtquick-controls2 qml-module-qtwebengine qt5-qmake qml-module-qtquick2 libqt5core5a libqt5gui5 libqt5network5 libqt5qml5 libqt5quick5 libqt5widgets5 +wget https://raw.githubusercontent.com/lnxslck/home/master/nitrux/qml-module-qmltermwidget_0.1%2Bgit20180903-1_amd64.deb -O qml-module-qmltermwidget_0.1%2Bgit20180903-1_amd64.deb +dpkg -i qml-module-qmltermwidget_0.1%2Bgit20180903-1_amd64.deb +wget http://repo.nxos.org/development/pool/main/m/mauikit/libmauikit_0%2Bgit20181114-1_amd64.deb +dpkg -i libmauikit_0+git20181114-1_amd64.deb +wget http://repo.nxos.org/development/pool/main/m/mauikit/qml-module-org-kde-mauikit_0%2Bgit20181114-1_amd64.deb +dpkg -i qml-module-org-kde-mauikit_0+git20181114-1_amd64.deb +wget http://repo.nxos.org/development/pool/main/m/mauikit/mauikit-dev_0%2Bgit20181114-1_amd64.deb +dpkg -i mauikit-dev_0+git20181114-1_amd64.deb +mk-build-deps -i -t "apt-get --yes" -r + +### Build Deb +mkdir source +mv ./* source/ # Hack for debuild +cd source +debuild -b -uc -us