-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bartłomiej Burdukiewicz <bartlomiej.burdukiewicz@gmail.com>
- Loading branch information
Showing
3 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST deskflow-1.17.0.tar.gz 4667960 BLAKE2B a111e68213e00cffe2f91c4499b08626a782f3855c0e61d7cf2e9f8769d18c60699c3e89f09397bed41bd9ed0d4d5433a10a37654445dc4bd2faf7172adf4b67 SHA512 e04fa33d7cdcfe41b7bfa224bbc1e92447b7973e7d190acaf2f46826f49e432118807cb7265ab3a2c9327fd9325bf73465416a1ff826fb2fbfeca7005e3a7f00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake desktop xdg-utils | ||
|
||
CP="deskflow-${P/-r/+r}" | ||
|
||
DESCRIPTION="Deskflow lets you share one mouse and keyboard between multiple computers" | ||
HOMEPAGE="https://github.com/deskflow/deskflow" | ||
|
||
#https://codeload.github.com/deskflow/deskflow/tar.gz/refs/tags/1.17.0%2Br1 | ||
SRC_URI="https://github.com/deskflow/deskflow/archive/refs/tags/${PVR/-r/+r}.tar.gz -> ${P}.tar.gz" | ||
|
||
S=${WORKDIR}/${PF} | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" | ||
IUSE="gui" | ||
|
||
RDEPEND=" | ||
>=dev-libs/libportal-0.8.0 | ||
dev-cpp/cli11 | ||
dev-cpp/tomlplusplus | ||
dev-libs/glib | ||
dev-libs/libei | ||
dev-libs/openssl:= | ||
dev-libs/pugixml | ||
gui? ( dev-qt/qtbase:6 ) | ||
sys-libs/glibc | ||
x11-libs/gdk-pixbuf | ||
x11-libs/libICE:= | ||
x11-libs/libSM:= | ||
x11-libs/libX11:= | ||
x11-libs/libXext:= | ||
x11-libs/libXi:= | ||
x11-libs/libXinerama:= | ||
x11-libs/libXrandr:= | ||
x11-libs/libXtst:= | ||
x11-libs/libnotify | ||
x11-libs/libxkbcommon | ||
" | ||
|
||
DEPEND=" | ||
${RDEPEND} | ||
x11-base/xorg-proto | ||
" | ||
BDEPEND=" | ||
gui? ( | ||
dev-qt/linguist-tools:5 | ||
)" | ||
|
||
src_configure() { | ||
local mycmakeargs=( | ||
-DBUILD_GUI=$(usex gui) | ||
-DBUILD_INSTALLER=OFF | ||
-DBUILD_TESTS=OFF | ||
-DENABLE_COVERAGE=OFF | ||
-DSYSTEM_CLI11=ON | ||
-DSYSTEM_LIBEI=ON | ||
-DSYSTEM_LIBPORTAL=ON | ||
) | ||
|
||
cmake_src_configure | ||
} | ||
|
||
#y_test() { | ||
#"${BUILD_DIR}"/bin/unittests && | ||
#"${BUILD_DIR}"/bin/integtests | ||
# | ||
|
||
#rc_test() { | ||
#virtx my_test | ||
# | ||
|
||
src_install() { | ||
if use gui; then | ||
#newbin "${BUILD_DIR}"/bin/synergy qsynergy | ||
newicon -s 512 "${S}/res/app.png" deskflow.png | ||
make_desktop_entry deskflow Deskflow deskflow 'Utility;' | ||
fi | ||
|
||
insinto /etc | ||
newins doc/deskflow.conf.example synergy.conf | ||
|
||
einstalldocs | ||
cmake_src_install | ||
} | ||
|
||
pkg_postinst() { | ||
xdg_icon_cache_update | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_icon_cache_update | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
<email>bartlomiej.burdukiewicz@gmail.com</email> | ||
<name>Bartłomiej Burdukiewicz</name> | ||
</maintainer> | ||
<use> | ||
<flag name="gui">Build with GUI support</flag> | ||
</use> | ||
</pkgmetadata> |