Commit 7057efae authored by Кирилл Уницаев's avatar Кирилл Уницаев

Merge branch 'service-test' into 'master'

Merge service-test See merge request !1
parents bc054319 526d5b07
prefix = /usr/local
sysconfdir = /etc
datadir = $(prefix)/share
all: dir install
dir:
mkdir -p $(prefix)/bin
mkdir -p $(prefix)/lib/systemd/user
mkdir -p $(sysconfdir)/ximper-unified-theme-switcher
mkdir -p $(datadir)/pixmaps
mkdir -p $(datadir)/applications/
install: dir
cp ./bin/ximper-unified-theme-switcher-service $(prefix)/bin
cp ./bin/ximper-unified-theme-switcher-gui $(prefix)/bin
cp ./data/ximper-unified-theme-switcher.service $(prefix)/lib/systemd/user
cp ./data/ximper-unified-theme-switcher-gui.svg $(datadir)/pixmaps
cp ./data/ximper-unified-theme-switcher-gui.desktop $(datadir)/applications
uninstall:
rm -f $(prefix)/bin/ximper-unified-theme-switcher-service
rm -f $(prefix)/bin/ximper-unified-theme-switcher-gui
rm -f $(prefix)/lib/systemd/user/ximper-unified-theme-switcher.service
rm -f $(datadir)/pixmaps/ximper-unified-theme-switcher-gui.svg
rm -f $(datadir)/applications/ximper-unified-theme-switcher-gui.desktop
[Desktop Entry]
Type=Application
Name=Theme switcher
Name[ru]=Смена тем
Comment=Color theme management
Comment[ru]=Управление цветовой темой
Categories=Utility;
Exec=ximper-unified-theme-switcher-gui
Icon=ximper-unified-theme-switcher-gui
[Unit]
Description=Ximper unified theme switcher
StartLimitInterval=500
StartLimitBurst=5
[Service]
ExecStartPre=/bin/sleep 2
ExecStart=/usr/bin/ximper-unified-theme-switcher-service
Restart=on-failure
RestartSec=1
Name: ximper-unified-theme-switcher
Version: 0.1.0
Release: alt1
License: MIT
Summary: Unified theme switcher for Ximper linux
Group: System/Configuration/Other
Url: https://gitlab.eterfund.ru/ximperlinux/ximper-unified-theme-switcher
Vcs: https://gitlab.eterfund.ru/ximperlinux/ximper-unified-theme-switcher.git
Source: %name-%version.tar
BuildRequires(pre): rpm-macros-make rpm-macros-systemd
Requires: Kvantum libgio
%description
%summary.
%package gui
Summary: GUI for Ximper unified theme switcher
Group: System/Configuration/Other
Requires: %name = %version-%release
Requires: yad
%description gui
GUI for Ximper unified theme switcher.
%prep
%setup
%install
%makeinstall
%files
%_bindir/ximper-unified-theme-switcher-service
%_userunitdir/ximper-unified-theme-switcher.service
%dir %_sysconfdir/ximper-unified-theme-switcher
%files gui
%_bindir/ximper-unified-theme-switcher-gui
%_desktopdir/%name-gui.desktop
%_pixmapsdir/%name-gui.svg
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment