Add debian related files.

This commit is contained in:
zhangpengfei 2021-01-06 08:57:21 +08:00
parent e5ceb16a1a
commit afe162eb62
14 changed files with 118 additions and 19 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
ukui-search (0.0.1+0104) v101; urgency=medium
* Initial release.
-- zhangpengfei <zhangpengfei@kylinos.cn> Mon, 04 Jan 2021 20:37:23 +0800

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

57
debian/control vendored Normal file
View File

@ -0,0 +1,57 @@
Source: ukui-search
Section: utils
Priority: optional
Maintainer: zhangpengfei <zhangpengfei@kylinos.cn>
Build-Depends: debhelper (>=9.0.0),
pkgconf,
libgsettings-qt-dev,
qtbase5-dev,
qt5-qmake,
qtchooser,
qtscript5-dev,
qttools5-dev-tools,
libxapian-dev,
libquazip5-dev,
libglib2.0-dev,
libgsettings-qt-dev
Standards-Version: 4.5.0
Homepage: https://www.ukui.org/
Vcs-Git: https://github.com/ukui/ukui-search.git
Vcs-Browser: https://github.com/ukui/ukui-search
Package: ukui-search
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
libukui-search0 (= ${binary:Version})
Description: ukui-search is a user-wide desktop search
feature of UKUI desktop environment.
Package: libchinese-segmentation0
Section: libs
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends}
Provides: libchinese-segmentation,
Description: Libraries for chinese-segmentation
.
This package contains a few runtime libraries needed by
libsearch.
Package: libukui-search0
Section: libs
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends},
libchinese-segmentation0 (= ${binary:Version})
Provides: libukui-search,
Description: Libraries for ukui-search.
Package: libukui-search-dev
Section: libdevel
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends},
libukui-search0 (= ${binary:Version}),
libchinese-segmentation0 (= ${binary:Version})
Description: Libraries for ukui-search(development files).

View File

@ -0,0 +1,2 @@
usr/lib/*.so.*
/usr/share/ukui-search/res/dict/*.utf8

2
debian/libukui-search-dev.install vendored Normal file
View File

@ -0,0 +1,2 @@
usr/include/ukui-search/*
usr/lib/*/*.so

1
debian/libukui-search0.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/*.so.*

25
debian/rules vendored Executable file
View File

@ -0,0 +1,25 @@
#!/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 QT_SELECT=5
# 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)

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)

1
debian/ukui-search.install vendored Normal file
View File

@ -0,0 +1 @@
usr/bin/*

View File

@ -1,6 +1,6 @@
QT -= gui QT -= gui
#VERSION = 0.0.1 VERSION = 0.0.1
TARGET = chinese-segmentation TARGET = chinese-segmentation
TEMPLATE = lib TEMPLATE = lib
DEFINES += LIBCHINESESEGMENTATION_LIBRARY DEFINES += LIBCHINESESEGMENTATION_LIBRARY

View File

@ -48,9 +48,13 @@ RESOURCES += \
# Default rules for deployment. # Default rules for deployment.
unix { unix {
target.path = /usr/lib target.path = $$[QT_INSTALL_LIBS]
INSTALLS += target
header.path = /usr/include/ukui-search
header.files += libsearch.h
INSTALLS += header
} }
!isEmpty(target.path): INSTALLS += target

View File

@ -50,23 +50,23 @@ int main(int argc, char *argv[])
//load chinese character and pinyin file to a Map //load chinese character and pinyin file to a Map
FileUtils::loadHanziTable("://index/pinyinWithoutTone.txt"); FileUtils::loadHanziTable("://index/pinyinWithoutTone.txt");
/*-------------InotyifyRefact Test Start---------------*/ /*-------------InotyifyRefact Test Start---------------*/
// QTime t1 = QTime::currentTime(); QTime t1 = QTime::currentTime();
// InotifyManagerRefact* imr = new InotifyManagerRefact("/home"); InotifyManagerRefact* imr = new InotifyManagerRefact("/home");
// imr->start(); imr->start();
// QTime t2 = QTime::currentTime(); QTime t2 = QTime::currentTime();
// qDebug() << t1; qDebug() << t1;
// qDebug() << t2; qDebug() << t2;
/*-------------InotyifyRefact Test End-----------------*/ /*-------------InotyifyRefact Test End-----------------*/
/*-------------InotyifyRefact Test Start---------------*/ /*-------------InotyifyRefact Test Start---------------*/
// QTime t1 = QTime::currentTime(); QTime t3 = QTime::currentTime();
// FileTypeFilter* ftf = new FileTypeFilter("/home"); FileTypeFilter* ftf = new FileTypeFilter("/home");
// ftf->Test(); ftf->Test();
// QTime t2 = QTime::currentTime(); QTime t4 = QTime::currentTime();
// delete ftf; delete ftf;
// ftf = nullptr; ftf = nullptr;
// qDebug() << t1; qDebug() << t3;
// qDebug() << t2; qDebug() << t4;
/*-------------InotyifyRefact Test End-----------------*/ /*-------------InotyifyRefact Test End-----------------*/
/*-------------文本搜索 Test start-----------------*/ /*-------------文本搜索 Test start-----------------*/

View File

@ -351,7 +351,7 @@ bool MainWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
switch (event->response_type & ~0x80) { switch (event->response_type & ~0x80) {
case XCB_FOCUS_OUT: case XCB_FOCUS_OUT:
this->close(); this->hide();
break; break;
} }

View File

@ -57,7 +57,7 @@ qm_files.files = $$OUT_PWD/res/translations/*.qm
INSTALLS += \ INSTALLS += \
qm_files \ qm_files \
unix:!macx: LIBS += -L$$OUT_PWD/../libsearch -lukui-search -L../libchinese-segmentation/ -lchinese-segmentation LIBS += -L$$PWD/../libsearch -lukui-search -L$$PWD/../libchinese-segmentation/ -lchinese-segmentation
INCLUDEPATH += $$PWD/../libsearch INCLUDEPATH += $$PWD/../libsearch
DEPENDPATH += $$PWD/../libsearch DEPENDPATH += $$PWD/../libsearch