wingpanel-indicator-namarupa: init at 0.0.0-unstable-2024-12-17
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 47a0da6..7aa49f4 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -8,6 +8,9 @@ project(
|
||||
gettext_name = meson.project_name() + '-indicator'
|
||||
i18n = import('i18n')
|
||||
|
||||
+prefix = get_option('prefix')
|
||||
+libdir = prefix / get_option('libdir')
|
||||
+
|
||||
add_global_arguments(
|
||||
'-DGETTEXT_PACKAGE="@0@"'.format(gettext_name),
|
||||
language:'c'
|
||||
@@ -25,7 +28,7 @@ add_project_arguments(
|
||||
config_data = configuration_data()
|
||||
config_data.set_quoted('GETTEXT_PACKAGE', gettext_name)
|
||||
config_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
|
||||
-config_data.set_quoted('AYATANAINDICATORDIR', dependency('indicator3-0.4').get_variable('indicatordir'))
|
||||
+config_data.set_quoted('AYATANAINDICATORDIR', '@indicator_application@/lib/indicators3/7/')
|
||||
|
||||
shared_module(
|
||||
meson.project_name(),
|
||||
@@ -44,7 +47,7 @@ shared_module(
|
||||
dependency('indicator3-0.4')
|
||||
],
|
||||
install: true,
|
||||
- install_dir : dependency('wingpanel').get_variable('indicatorsdir')
|
||||
+ install_dir : dependency('wingpanel').get_variable('indicatorsdir', pkgconfig_define: ['libdir', libdir])
|
||||
)
|
||||
|
||||
subdir('po')
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
unstableGitUpdater,
|
||||
replaceVars,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
vala,
|
||||
gtk3,
|
||||
libgee,
|
||||
libindicator-gtk3,
|
||||
pantheon,
|
||||
indicator-application-gtk3,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wingpanel-indicator-namarupa";
|
||||
version = "0.0.0-unstable-2024-12-17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lenemter";
|
||||
repo = pname;
|
||||
rev = "d9fc4e47d58c72e0cf08aa11246910ce84fcef50";
|
||||
sha256 = "sha256-8jzhrCMkP5ui964JRZUs+tl2ShxeB8q60fBUI4okrpg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Tells the indicator the path for libapplication.so
|
||||
(replaceVars ./fix-meson-build.patch {
|
||||
indicator_application = indicator-application-gtk3;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
vala
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
libgee
|
||||
libindicator-gtk3
|
||||
pantheon.granite
|
||||
pantheon.wingpanel
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = unstableGitUpdater {
|
||||
url = "https://github.com/lenemter/wingpanel-indicator-namarupa.git";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Wingpanel Namarupa Indicator (Ayatana support)";
|
||||
homepage = "https://github.com/lenemter/wingpanel-indicator-namarupa";
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = teams.pantheon.members;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user