build: added gtk dep

This commit is contained in:
2025-12-17 13:32:26 +03:00
parent 58eff4d97e
commit 019b0db522
9 changed files with 17 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
# Maintainer: Daniel Dada <dan@binarygoose.dev> # Maintainer: Daniel Dada <dan@binarygoose.dev>
pkgname=clrsync pkgname=clrsync
pkgver=0.1.4 pkgver=0.1.5
pkgrel=1 pkgrel=1
pkgdesc="Color scheme manager" pkgdesc="Color scheme manager"
arch=('x86_64') arch=('x86_64')
@@ -14,6 +14,7 @@ depends=(
mesa mesa
libglvnd libglvnd
libxcursor libxcursor
gtk3
) )
makedepends=( makedepends=(
@@ -26,6 +27,7 @@ makedepends=(
libxcursor libxcursor
wayland wayland
wayland-protocols wayland-protocols
gtk3
) )
source=("$pkgname-$pkgver.tar.gz::https://github.com/obsqrbtz/clrsync/archive/refs/tags/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::https://github.com/obsqrbtz/clrsync/archive/refs/tags/v$pkgver.tar.gz")

View File

@@ -13,6 +13,7 @@ depends=(
mesa mesa
libglvnd libglvnd
libxcursor libxcursor
gtk3
) )
makedepends=( makedepends=(
@@ -26,6 +27,7 @@ makedepends=(
libxcursor libxcursor
wayland wayland
wayland-protocols wayland-protocols
gtk3
) )
provides=('clrsync') provides=('clrsync')
conflicts=('clrsync') conflicts=('clrsync')

View File

@@ -14,6 +14,7 @@ depends=(
mesa mesa
libglvnd libglvnd
libxcursor libxcursor
gtk3
) )
makedepends=( makedepends=(
@@ -26,6 +27,7 @@ makedepends=(
libxcursor libxcursor
wayland wayland
wayland-protocols wayland-protocols
gtk3
) )
source=("$pkgname-$pkgver.tar.gz::https://github.com/obsqrbtz/clrsync/archive/refs/tags/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::https://github.com/obsqrbtz/clrsync/archive/refs/tags/v$pkgver.tar.gz")

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25) cmake_minimum_required(VERSION 3.25)
project(clrsync VERSION 0.1.4 LANGUAGES CXX) project(clrsync VERSION 0.1.5 LANGUAGES CXX)
include(GNUInstallDirs) include(GNUInstallDirs)

View File

@@ -1 +1 @@
0.1.4 0.1.5

View File

@@ -24,6 +24,11 @@ else()
pkg_check_modules(WAYLAND_EGL wayland-egl) pkg_check_modules(WAYLAND_EGL wayland-egl)
endif() endif()
if (LINUX)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
endif()
if(USE_SYSTEM_GLFW) if(USE_SYSTEM_GLFW)
pkg_check_modules(GLFW REQUIRED glfw3) pkg_check_modules(GLFW REQUIRED glfw3)
else() else()

View File

@@ -67,6 +67,7 @@ stdenv.mkDerivation rec {
libxkbcommon libxkbcommon
zlib zlib
bzip2 bzip2
gtk3
]; ];
cmakeFlags = [ cmakeFlags = [

View File

@@ -6,7 +6,7 @@
namespace clrsync::core namespace clrsync::core
{ {
const std::string GIT_SEMVER = "0.1.4+git.gb4ca5e1"; const std::string GIT_SEMVER = "0.1.4+git.g58eff4d";
const std::string version_string(); const std::string version_string();
} // namespace clrsync::core } // namespace clrsync::core

View File

@@ -44,9 +44,6 @@ elseif(APPLE)
"-framework Cocoa" "-framework Cocoa"
) )
else() else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
target_link_libraries(clrsync_gui PRIVATE target_link_libraries(clrsync_gui PRIVATE
clrsync_core clrsync_core
imgui imgui