From 177e5495d8a2565065f55e3a9efca01778cb42b3 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Sun, 9 Apr 2017 19:13:12 +0800 Subject: [PATCH] debian packaging --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 14 ++++++++++++++ debian/copyright | 7 +++++++ debian/rules | 28 ++++++++++++++++++++++++++++ debian/source/format | 1 + debian/vnote.install | 10 ++++++++++ hoedown | 2 +- src/src.pro | 8 ++++++++ 9 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/vnote.install diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..59b74d4d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +vnote (1.2-0ubuntu1) xenial; urgency=medium + + * Initial release + + -- Le Tan Sun, 09 Apr 2017 16:32:22 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..2307891a --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: vnote +Section: editors +Priority: optional +Maintainer: Le Tan +Build-Depends: debhelper (>=9), cdbs, qt5-qmake, qtbase5-dev, libqt5svg5-dev, qtdeclarative5-dev, libqt5xmlpatterns5-dev +Standards-Version: 3.9.6 +Homepage: https://tamlok.github.io/vnote +#Vcs-Git: git://anonscm.debian.org/collab-maint/vnote.git +Vcs-Browser: https://github.com/tamlok/vnote.git + +Package: vnote +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libqt5core5a, libqt5gui5, libqt5sql5, libqt5sql5-sqlite, libqt5widgets5, libqt5qml5, libqt5svg5, libqt5network5, libqt5xml5, libqt5xmlpatterns5, libqt5printsupport5 +Description: A Vim-inspired note-taking application, especially for Markdown diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..73f90572 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,7 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: vnote +Source: https://tamlok.github.io/vnote + +Files: * +Copyright: 2017 Le Tan +License: MIT License diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..fcd3d026 --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) +override_dh_shlibdeps: + dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info + +export QT_SELECT=qt5 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/vnote.install b/debian/vnote.install new file mode 100644 index 00000000..9490ef21 --- /dev/null +++ b/debian/vnote.install @@ -0,0 +1,10 @@ +src/vnote.desktop usr/share/applications +src/resources/icons/128x128/vnote.png usr/share/pixmaps +src/resources/icons/16x16/vnote.png usr/share/icons/hicolor/16x16/apps +src/resources/icons/32x32/vnote.png usr/share/icons/hicolor/32x32/apps +src/resources/icons/48x48/vnote.png usr/share/icons/hicolor/48x48/apps +src/resources/icons/64x64/vnote.png usr/share/icons/hicolor/64x64/apps +src/resources/icons/128x128/vnote.png usr/share/icons/hicolor/128x128/apps +src/resources/icons/256x256/vnote.png usr/share/icons/hicolor/256x256/apps +src/resources/icons/vnote.svg usr/share/icons/hicolor/scalable/apps +src/VNote usr/bin diff --git a/hoedown b/hoedown index 968af5b0..f3c38887 160000 --- a/hoedown +++ b/hoedown @@ -1 +1 @@ -Subproject commit 968af5b07e985488a7e841249fde7f0b19bcfb72 +Subproject commit f3c38887a32502ae8eb0e74c6312834243a32e98 diff --git a/src/src.pro b/src/src.pro index 4d13fcca..cb289766 100644 --- a/src/src.pro +++ b/src/src.pro @@ -109,6 +109,14 @@ RESOURCES += \ vnote.qrc \ translations.qrc +OTHER_FILES += \ + utils/highlightjs/highlight.pack.js \ + utils/markdown-it/markdown-it-headinganchor.js \ + utils/markdown-it/markdown-it-task-lists.min.js \ + utils/markdown-it/markdown-it.min.js \ + utils/marked/marked.min.js \ + utils/mermaid/mermaidAPI.min.js + macx { LIBS += -L/usr/local/lib INCLUDEPATH += /usr/local/include