Skip to content

Commit

Permalink
rebuild for hamonikr 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeya committed Oct 28, 2020
1 parent dd5373b commit 1f5b1ed
Show file tree
Hide file tree
Showing 765 changed files with 84,458 additions and 2 deletions.
142 changes: 142 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
cmake_minimum_required(VERSION 3.1.3) # Least supporting CMAKE_CXX_STANDARD
###############################################################################

project(albert VERSION 0.16.1)

###############################################################################

include(GNUInstallDirs)

###############################################################################

add_definitions(-DALBERT_VERSION="${PROJECT_VERSION}")

# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

# Set standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# Set additional compiler flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic") #-Wconversion -Wunused
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQT_QML_DEBUG")

# Color make output
SET(CMAKE_COLOR_MAKEFILE ON)

# Put the binaries in dedicated toplevel directories
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

###############################################################################

add_subdirectory(lib/globalshortcut)
add_subdirectory(lib/xdg)
add_subdirectory(plugins/)

###############################################################################

set(TARGET_NAME_LIB ${PROJECT_NAME}-lib)

file(GLOB_RECURSE LIB_SRC include/* src/lib/*)

add_library(${TARGET_NAME_LIB} SHARED ${LIB_SRC})
add_library(albert::lib ALIAS ${TARGET_NAME_LIB})

set_target_properties(${TARGET_NAME_LIB} PROPERTIES
OUTPUT_NAME ${PROJECT_NAME}
INSTALL_RPATH "$ORIGIN"
)

target_compile_definitions(${TARGET_NAME_LIB} PRIVATE -DCORE) #export branch

target_include_directories(${TARGET_NAME_LIB}
PUBLIC
include
PRIVATE
include/albert
include/albert/util
src/lib
)

find_package(Qt5 5.5.0
COMPONENTS
Gui
Sql
)

target_link_libraries(${TARGET_NAME_LIB}
PRIVATE
Qt5::Gui
Qt5::Sql
)

###############################################################################

option(BUILD_WITH_QTCHARTS "Use QtCharts to plot stats." ON)

find_package(Qt5 5.5.0
COMPONENTS
Concurrent
Network
Sql
Widgets
OPTIONAL_COMPONENTS
Charts
)

set(TARGET_NAME_BIN ${PROJECT_NAME}-bin)

file(GLOB_RECURSE BIN_SRC src/app/*)
if(NOT BUILD_WITH_QTCHARTS) # TODO: remove Apr 2020
list(REMOVE_ITEM BIN_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/app/settingswidget/statswidget.h")
list(REMOVE_ITEM BIN_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/app/settingswidget/statswidget.cpp")
endif()

add_executable(${TARGET_NAME_BIN} ${BIN_SRC} resources.qrc)

set_target_properties(${TARGET_NAME_BIN} PROPERTIES
OUTPUT_NAME ${PROJECT_NAME}
INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}/albert/" # Set the RPATH for the library lookup
)

target_include_directories(${TARGET_NAME_BIN} PRIVATE src/app src/app/settingswidget)
if (DEFINED CMAKE_LIBRARY_ARCHITECTURE)
target_compile_definitions(${TARGET_NAME_BIN} PRIVATE -DMULTIARCH_TUPLE="${CMAKE_LIBRARY_ARCHITECTURE}")
endif()

target_link_libraries(${TARGET_NAME_BIN}
PRIVATE
Qt5::Concurrent
Qt5::Network
Qt5::Sql
Qt5::Widgets
albert::lib
globalshortcut
xdg
)
if(BUILD_WITH_QTCHARTS)
target_link_libraries(${TARGET_NAME_BIN} PRIVATE Qt5::Charts)
target_compile_definitions(${TARGET_NAME_BIN} PRIVATE -DBUILD_WITH_QTCHARTS) #export branch
endif()

###############################################################################

install(TARGETS ${TARGET_NAME_LIB} ${TARGET_NAME_BIN}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/albert
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Do platform specific post target stuff
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# Install desktop entry and icon
install(FILES resources/albert.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications )
install(FILES resources/icons/albert.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
37 changes: 37 additions & 0 deletions Dockerfile.ubuntu1604
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM ubuntu:16.04

# Prepare system
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -qq update \
&& apt-get install --no-install-recommends -y \
cmake \
g++ \
libmuparser-dev \
libqalculate-dev \
libqt5svg5-dev \
libqt5x11extras5-dev \
python3-dev \
qtbase5-dev \
qtdeclarative5-dev \
unzip \
virtualbox \
wget \
&& true

# Install virtualbox headers
RUN true \
&& mkdir /tmp/vbox \
&& cd /tmp/vbox \
&& wget -q http://download.virtualbox.org/virtualbox/5.2.22/VirtualBoxSDK-5.2.22-126460.zip \
&& unzip VirtualBoxSDK-5.2.22-126460.zip \
&& mv sdk/bindings/xpcom/include /usr/lib/virtualbox/sdk/bindings/xpcom \
&& cd - \
&& rm -rf /tmp/vbox

COPY . /srv/albert/src/

WORKDIR /srv/albert/build/
RUN true \
&& cmake /srv/albert/src/ -DCMAKE_BUILD_TYPE=Debug -DBUILD_WITH_QTCHARTS=OFF \
&& make \
&& make install
38 changes: 38 additions & 0 deletions Dockerfile.ubuntu1804
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM ubuntu:18.04

# Prepare system
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -qq update \
&& apt-get install --no-install-recommends -y \
cmake \
g++ \
libmuparser-dev \
libqt5charts5-dev \
libqalculate-dev \
libqt5svg5-dev \
libqt5x11extras5-dev \
python3-dev \
qtbase5-dev \
qtdeclarative5-dev \
unzip \
virtualbox \
wget \
&& true

# Install virtualbox headers
RUN true \
&& mkdir /tmp/vbox \
&& cd /tmp/vbox \
&& wget -q http://download.virtualbox.org/virtualbox/5.2.22/VirtualBoxSDK-5.2.22-126460.zip \
&& unzip VirtualBoxSDK-5.2.22-126460.zip \
&& mv sdk/bindings/xpcom/include /usr/lib/virtualbox/sdk/bindings/xpcom \
&& cd - \
&& rm -rf /tmp/vbox

COPY . /srv/albert/src/

WORKDIR /srv/albert/build/
RUN true \
&& cmake /srv/albert/src/ -DCMAKE_BUILD_TYPE=Debug \
&& make \
&& make install
19 changes: 19 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!--
* Update to the latest version.
* DYOR, check for existing issues/FAQ
* For support join the chats.
* If you want me to help you, please provide the information below
-->

#### Source
<!-- e.g. ppa:name, repository, from source, etc … -->

#### Environment
<!-- Albert version >= v0.14.22: albert --report -->
<!-- Albert version <= v0.14.21: cat /etc/issue; uname -r; env | grep -e SESSION_TYPE -e DESKTOP; qmake-qt5 -v; albert -v -->

#### Steps to reproduce

#### Expected behaviour

#### Actual behaviour
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# albert-hamonikr
launcher
# Albert launcher [![Build Status](https://api.travis-ci.org/albertlauncher/albert.svg?branch=dev)](https://travis-ci.org/albertlauncher/albert)

[![Telegram news channel](https://img.shields.io/badge/news%20channel-telegram-0088cc.svg?style=flat)](https://telegram.me/albertlauncher)
[![Telegram community chat](https://img.shields.io/badge/chat-telegram-0088cc.svg?style=flat)](https://telegram.me/albert_launcher_community)
[![Discord](https://img.shields.io/badge/chat-discord-7289da.svg?style=flat)](https://discord.gg/enGMWUG)
[![IRC](https://img.shields.io/badge/chat-IRC-brightgreen.svg)](http://webchat.freenode.net/?channels=%23albertlauncher)

## Albert in a nutshell

Albert is a unified and efficient access to your machine. Technically it is a keyboard launcher written in C++/Qt. The plugin based architecture makes it extremely flexible and powerful. Plugins can be used to create modular frontends or native extensions. Extensions can also be implemented using embedded Python modules or via a CGI approach in any language you want. The frontends shipped heavily focus on customizability.

## Getting started

Check the section [*Installing Albert*](https://albertlauncher.github.io/docs/installing/) in the docs for setup instructions. When you are set up take a look at the section [*Using Albert*](https://albertlauncher.github.io/docs/using/). If you have problems check the [*Troubleshooting*](https://albertlauncher.github.io/docs/faq/) section. If it does not cover your problems seek for [*help*](https://albertlauncher.github.io/help/) in one of the chats. Developers may want to check the [*Extending Albert*](https://albertlauncher.github.io/docs/extending/) section.

## Albert at a glance

<p align="center"><img src="https://i.imgur.com/9Yc7unp.jpg"></p>
<p align="center"><img src="https://i.imgur.com/BaMlWit.jpg"></p>
<p align="center"><img src="https://i.imgur.com/NJvIyXO.jpg"></p>
<p align="center"><img src="https://i.imgur.com/22SEMOJ.jpg"></p>
<p align="center"><img src="https://i.imgur.com/jBywwko.jpg"></p>
<p align="center"><img src="https://i.imgur.com/hmvpgxC.jpg"></p>
<p align="center"><img src="https://i.imgur.com/RQxbi9m.jpg"></p>
<p align="center"><img src="https://i.imgur.com/IvBcMyv.jpg"></p>
<p align="center"><img src="https://i.imgur.com/OCmAYGP.jpg"></p>
<p align="center"><img src="https://i.imgur.com/eKSRbDC.jpg"></p>
<p align="center"><img src="https://i.imgur.com/lbf3BlB.jpg"></p>
<p align="center"><img src="https://i.imgur.com/eNwgakM.jpg"></p>
<p align="center"><img src="https://i.imgur.com/LuiAmzU.jpg"></p>

# Support

If you like this software consider [donating](https://albertlauncher.github.io/docs/donation/) a :beer:. :+1:

Have fun with albert, if you do not, [tell me why](https://telegram.me/albert_launcher_community).
19 changes: 19 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
albert (0.16.1hamonikr1) stable; urgency=low

* rebuild for hamonikr 4.0
- added theme for hamonikr 4.0 jin
- add korean application name in desktop file

-- HamoniKR <pkg@hamonikr.org> Wed, 28 Oct 2020 16:38:31 +0900

albert (0.16.1) stable; urgency=low

* version number update by debtransform

-- debtransform <build@opensuse.org> Sat, 13 Jun 2020 13:10:17 +0000

albert (0.16.1-0) stable; urgency=low

* Albert Upstream Release

-- Manuel Schneider <manuelschneid3r@gmail.com> Sun, 29 Oct 2017 00:00:00 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
26 changes: 26 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Source: albert
Section: utils
Priority: optional
Maintainer: Manuel Schneider <manuelschneid3r@gmail.com>
Standards-Version: 4.0.0
Homepage: https://albertlauncher.github.io/
Vcs-Git: ghttps://github.com/albertlauncher/albert.git
Build-Depends:
debhelper (>=9),
cmake (>=3.1.3),
qtbase5-dev (>=5.5),
libqt5x11extras5-dev (>=5.5),
libqt5svg5-dev (>=5.5),
qtdeclarative5-dev (>=5.5),
libmuparser-dev (>=2),
python3-dev (>=3.5),
lsb-release


Package: albert
Architecture: any
Depends: ${shlibs:Depends}, libqt5sql5-sqlite
Recommends: qml-module-qtgraphicaleffects, qml-module-qtquick-controls
Description: A sophisticated, plugin-based, standalone keyboard launcher written in C++/Qt
Albert is a unified and efficient access to your machine. Technically it is a keyboard launcher written in C++/Qt. The plugin based architecture makes it extremely flexible and powerful. Plugins can be used to create modular frontends or native extensions. Extensions can also be implemented using embedded Python modules or via a CGI approach in any language you want. The frontends shipped heavily focus on customizability.

17 changes: 17 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/make -f
CODENAME = $(shell lsb_release -cs)
export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


%:
dh $@

override_dh_auto_configure:
ifneq (, $(findstring ${CODENAME},"xenial" "yakkety" "zesty" "stretch"))
dh_auto_configure -- -DBUILD_WITH_QTCHARTS=OFF
else
dh_auto_configure --
endif
Loading

0 comments on commit 1f5b1ed

Please sign in to comment.