Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ add_executable(easy-switcher

target_link_libraries(${PROJECT_NAME} ${LIBEVDEV_LIBRARIES})

install(TARGETS easy-switcher RUNTIME DESTINATION /usr/bin)
install(FILES resources/easy-switcher.service DESTINATION /usr/lib/systemd/system)
install(FILES resources/easy-switcher.1 DESTINATION /usr/share/man/man1)
install(TARGETS easy-switcher RUNTIME DESTINATION bin)
install(FILES resources/easy-switcher.1 DESTINATION share/man/man1)

add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -E remove /usr/bin/easy-switcher
COMMAND ${CMAKE_COMMAND} -E remove_directory /etc/easy-switcher
COMMAND ${CMAKE_COMMAND} -E remove /usr/lib/systemd/system/easy-switcher.service
COMMAND ${CMAKE_COMMAND} -E remove /usr/share/man/man1/easy-switcher.1
)
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ sudo make install
sudo easy-switcher --configure
sudo systemctl enable easy-switcher
sudo systemctl start easy-switcher

you can create a deb package using

dpkg-buildpackage --no-sign --build=binary --post-clean
File renamed without changes.
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
13
11 changes: 11 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Source: easy-switcher
Section: utils
Priority: optional
Maintainer: freemind <easy-switcher@mail.ru>
Standards-Version: 0.5

Package: easy-switcher
Architecture: amd64
Depends: libc6, libevdev2
Description: Keyboard layout switcher for Linux
Easy Switcher is a keyboard layout switcher and input corrector for Linux.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions resources/postrm → debian/postrm
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# resources/postrm
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = "purge" ]; then
rm -rf /etc/easy-switcher
fi
exit 0

4 changes: 4 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/make -f

%:
dh $@
Binary file removed resources/changelog.gz
Binary file not shown.
Binary file removed resources/easy-switcher.1.gz
Binary file not shown.
7 changes: 0 additions & 7 deletions resources/postinst

This file was deleted.

7 changes: 0 additions & 7 deletions resources/prerm

This file was deleted.