summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDustin Falgout2019-04-03 23:12:05 -0500
committerDustin Falgout2019-04-03 23:12:05 -0500
commitad95efd6edb5dce9edaf34ac0517660a07907b11 (patch)
tree511526f2858b2bf92060f6ec883122ece0e4fa60
parentf339256ade1bd96710eed16fbca5e6e278fd5ec4 (diff)
downloadaur-ad95efd6edb5dce9edaf34ac0517660a07907b11.tar.gz
[updpkg] brisk-menu 0.6.0.r31.g3d5e639
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD27
-rw-r--r--fix-launch.patch12
-rw-r--r--mate-122.patch198
4 files changed, 14 insertions, 237 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5cc1f909760..52f9e5db2fa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Thu Apr 4 04:11:29 UTC 2019
pkgbase = brisk-menu
pkgdesc = Modern, efficient menu for the MATE Desktop Environment.
- pkgver = 0.5.0
- pkgrel = 3
+ pkgver = 0.6.0.r31.g3d5e639
+ pkgrel = 1
url = https://github.com/getsolus/brisk-menu
arch = i686
arch = x86_64
@@ -15,12 +17,8 @@ pkgbase = brisk-menu
makedepends = ninja
depends = mate-panel
depends = libnotify
- source = https://github.com/solus-project/brisk-menu/releases/download/v0.5.0/brisk-menu-v0.5.0.tar.xz
- source = mate-122.patch
- source = fix-launch.patch
- sha256sums = 1377ffbb784e576c290bb4d11a2dd376bc0ad017bb9f56a080bccdbc4fbe88ce
- sha256sums = 80326a5b98d0dfd6c7d9a362907edf576e24683032ffb62926f68e3f16abff71
- sha256sums = 580f7f78b51107cb8e594b361d36eebbedb38b77a5248b9813dc4bc8961bd775
+ source = https://github.com/getsolus/brisk-menu/archive/3d5e63975d7c56cf2c63a0708065a694d6e54456.zip
+ md5sums = 39ba48d21bd06fcd4f56bae9ac812cc0
pkgname = brisk-menu
diff --git a/PKGBUILD b/PKGBUILD
index d8363dc72ba..7ea6f5dd971 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,10 @@
# Maintainer: Dustin Falgout <dustin@antergos.com>
pkgname=brisk-menu
-pkgver=0.5.0
-pkgrel=3
+# git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+_commit=3d5e63975d7c56cf2c63a0708065a694d6e54456
+pkgver=0.6.0.r31.g3d5e639
+pkgrel=1
pkgdesc='Modern, efficient menu for the MATE Desktop Environment.'
arch=('i686' 'x86_64')
url='https://github.com/getsolus/brisk-menu'
@@ -10,22 +12,12 @@ license=('GPL2')
groups=('mate')
depends=('mate-panel' 'libnotify')
makedepends=('gnome-common' 'gettext' 'itstool' 'vala>=0.36' 'meson' 'ninja' )
-source=("https://github.com/solus-project/${pkgname}/releases/download/v${pkgver}/${pkgname}-v${pkgver}.tar.xz"
-mate-122.patch
-fix-launch.patch)
-
-
-prepare() {
- cd "$srcdir/${pkgname}-v${pkgver}"
- # This patch fixes building with mate 1.22.x
- patch -Np1 -i "${srcdir}/mate-122.patch"
- # This fixes starting with mate 1.22.x but removes categories icon for now
- patch -Np1 -i "${srcdir}/fix-launch.patch"
-}
+source=("https://github.com/getsolus/${pkgname}/archive/${_commit}.zip")
+md5sums=('39ba48d21bd06fcd4f56bae9ac812cc0')
build() {
- cd "${srcdir}/${pkgname}-v${pkgver}"
+ cd "${srcdir}/${pkgname}-${_commit}"
mkdir build
meson build \
@@ -38,10 +30,7 @@ build() {
package() {
- cd "${srcdir}/${pkgname}-v${pkgver}/build"
+ cd "${srcdir}/${pkgname}-${_commit}/build"
DESTDIR="${pkgdir}" ninja install
}
-sha256sums=('1377ffbb784e576c290bb4d11a2dd376bc0ad017bb9f56a080bccdbc4fbe88ce'
- '80326a5b98d0dfd6c7d9a362907edf576e24683032ffb62926f68e3f16abff71'
- '580f7f78b51107cb8e594b361d36eebbedb38b77a5248b9813dc4bc8961bd775')
diff --git a/fix-launch.patch b/fix-launch.patch
deleted file mode 100644
index 765c2257c47..00000000000
--- a/fix-launch.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/src/backend/apps/apps-section.c b/src/backend/apps/apps-section.c
-index 97dcbdb..e333589 100644
---- a/src/backend/apps/apps-section.c
-+++ b/src/backend/apps/apps-section.c
-@@ -69,7 +69,8 @@ static void brisk_apps_section_update_directory(BriskAppsSection *self,
- self->id =
- g_strdup_printf("%s.mate-directory", matemenu_tree_directory_get_menu_id(directory));
- self->name = g_strdup(matemenu_tree_directory_get_name(directory));
-- self->icon = matemenu_tree_directory_get_icon(directory);
-+ //self->icon = matemenu_tree_directory_get_icon(directory);
-+ self->icon = NULL;
- }
diff --git a/mate-122.patch b/mate-122.patch
deleted file mode 100644
index 17048e27823..00000000000
--- a/mate-122.patch
+++ /dev/null
@@ -1,198 +0,0 @@
-diff --git a/meson.build b/meson.build
-index 956c3c7..91c25ac 100644
---- a/meson.build
-+++ b/meson.build
-@@ -52,7 +52,7 @@ gnome = import('gnome')
-
- # Required minimum versions
- gtk_min_version = '>= 3.18.0'
--mate_min_version = '>= 1.16.0'
-+mate_min_version = '>= 1.21.0'
- glib_min_version = '>= 2.44.0'
-
- # GTK/UI deps
-diff --git a/src/backend/apps/apps-backend.c b/src/backend/apps/apps-backend.c
-index 0e76607..1328c48 100644
---- a/src/backend/apps/apps-backend.c
-+++ b/src/backend/apps/apps-backend.c
-@@ -19,6 +19,8 @@ BRISK_BEGIN_PEDANTIC
- #include "apps-section.h"
- #include <gio/gio.h>
- #include <glib/gi18n.h>
-+
-+#define MATEMENU_I_KNOW_THIS_IS_UNSTABLE
- #include <matemenu-tree.h>
- BRISK_END_PEDANTIC
-
-@@ -72,9 +74,11 @@ static void brisk_apps_backend_launch_action(GSimpleAction *action, GVariant *pa
- DEF_AUTOFREE(gchar, g_free)
- DEF_AUTOFREE(GSList, g_slist_free)
- DEF_AUTOFREE(MateMenuTreeDirectory, matemenu_tree_item_unref)
--DEF_AUTOFREE(MateMenuTreeItem, matemenu_tree_item_unref)
--DEF_AUTOFREE(MateMenuTree, matemenu_tree_unref)
-+DEF_AUTOFREE(MateMenuTreeEntry, matemenu_tree_item_unref)
-+DEF_AUTOFREE(MateMenuTreeIter, matemenu_tree_iter_unref)
-+DEF_AUTOFREE(MateMenuTree, g_object_unref)
- DEF_AUTOFREE(GDesktopAppInfo, g_object_unref)
-+DEF_AUTOFREE(GError, g_error_free)
-
- /**
- * Due to a glib weirdness we must fully invalidate the monitor's cache
-@@ -352,12 +356,18 @@ static gboolean brisk_apps_backend_build_from_tree(BriskAppsBackend *self, const
- {
- autofree(MateMenuTree) *tree = NULL;
- autofree(MateMenuTreeDirectory) *dir = NULL;
-+ autofree(GError) *error = NULL;
-
-- tree = matemenu_tree_lookup(menu_id, MATEMENU_TREE_FLAGS_NONE);
-+ tree = matemenu_tree_new(menu_id, MATEMENU_TREE_FLAGS_NONE);
- if (!tree) {
- return FALSE;
- }
-
-+ if (!matemenu_tree_load_sync(tree, &error)) {
-+ g_message("Failed to load tree: %s", error->message);
-+ return FALSE;
-+ }
-+
- dir = matemenu_tree_get_root_directory(tree);
- if (!dir) {
- return FALSE;
-@@ -392,37 +402,31 @@ static void brisk_apps_backend_recurse_root(BriskAppsBackend *self,
- MateMenuTreeDirectory *directory,
- MateMenuTreeDirectory *root)
- {
-- autofree(GSList) *kids = NULL;
-- GSList *elem = NULL;
-+ autofree(MateMenuTreeIter) *iter = NULL;
-+ MateMenuTreeItemType type;
-
-- kids = matemenu_tree_directory_get_contents(directory);
-+ iter = matemenu_tree_directory_iter(directory);
-
- /* Iterate the root tree */
-- for (elem = kids; elem; elem = elem->next) {
-- autofree(MateMenuTreeItem) *item = elem->data;
--
-- switch (matemenu_tree_item_get_type(item)) {
-+ while ((type = matemenu_tree_iter_next(iter)) != MATEMENU_TREE_ITEM_INVALID) {
-+ switch (type) {
- case MATEMENU_TREE_ITEM_DIRECTORY: {
-- MateMenuTreeDirectory *dir = MATEMENU_TREE_DIRECTORY(item);
-+ autofree(MateMenuTreeDirectory) *dir =
-+ matemenu_tree_iter_get_directory(iter);
- autofree(MateMenuTreeDirectory) *parent = NULL;
-+ autofree(MateMenuTreeIter) *children = NULL;
- BriskSection *section = NULL;
-- GSList *children = NULL;
-- guint n_children = 0;
-
-- parent = matemenu_tree_item_get_parent(item);
-+ parent = matemenu_tree_directory_get_parent(dir);
- /* Nested menus basically only happen in mate-settings.menu */
- if (parent != root) {
- goto recurse_root;
- }
-
-- children = matemenu_tree_directory_get_contents(dir);
-- if (children) {
-- n_children = g_slist_length(children);
-- g_slist_free_full(children, matemenu_tree_item_unref);
-- }
-+ children = matemenu_tree_directory_iter(dir);
-
- /* Skip empty sections entirely */
-- if (n_children < 1) {
-+ if (matemenu_tree_iter_next(children) == MATEMENU_TREE_ITEM_INVALID) {
- continue;
- }
-
-@@ -437,7 +441,7 @@ static void brisk_apps_backend_recurse_root(BriskAppsBackend *self,
- brisk_apps_backend_recurse_root(self, dir, root);
- } break;
- case MATEMENU_TREE_ITEM_ENTRY: {
-- MateMenuTreeEntry *entry = MATEMENU_TREE_ENTRY(item);
-+ autofree(MateMenuTreeEntry) *entry = matemenu_tree_iter_get_entry(iter);
- autofree(GDesktopAppInfo) *info = NULL;
- const gchar *desktop_file = NULL;
- BriskItem *app_item = NULL;
-diff --git a/src/backend/apps/apps-section.c b/src/backend/apps/apps-section.c
-index 27d52c4..97dcbdb 100644
---- a/src/backend/apps/apps-section.c
-+++ b/src/backend/apps/apps-section.c
-@@ -54,48 +54,22 @@ static const GIcon *brisk_apps_section_get_icon(BriskSection *item);
- static const gchar *brisk_apps_section_get_backend_id(BriskSection *item);
- static gboolean brisk_apps_section_can_show_item(BriskSection *section, BriskItem *item);
-
--/**
-- * Create a GIcon for the given path
-- */
--static GIcon *brisk_apps_section_create_path_icon(const gchar *path)
--{
-- autofree(GFile) *file = NULL;
--
-- file = g_file_new_for_path(path);
-- if (!file) {
-- return NULL;
-- }
-- return g_file_icon_new(file);
--}
--
- static void brisk_apps_section_update_directory(BriskAppsSection *self,
- MateMenuTreeDirectory *directory)
- {
- g_clear_object(&self->icon);
- g_clear_pointer(&self->id, g_free);
- g_clear_pointer(&self->name, g_free);
-- const gchar *icon = NULL;
-
- if (!directory) {
- return;
- }
-
-- /* Set our ID and name */
-+ /* Set our ID, name, and icon */
- self->id =
- g_strdup_printf("%s.mate-directory", matemenu_tree_directory_get_menu_id(directory));
- self->name = g_strdup(matemenu_tree_directory_get_name(directory));
--
-- icon = matemenu_tree_directory_get_icon(directory);
-- if (!icon) {
-- return;
-- }
--
-- /* Set an appropriate icon based on the string */
-- if (icon[0] == '/') {
-- self->icon = brisk_apps_section_create_path_icon(icon);
-- } else {
-- self->icon = g_themed_icon_new_with_default_fallbacks(icon);
-- }
-+ self->icon = matemenu_tree_directory_get_icon(directory);
- }
-
- static void brisk_apps_section_set_property(GObject *object, guint id, const GValue *value,
-diff --git a/src/backend/apps/apps-section.h b/src/backend/apps/apps-section.h
-index bc10044..26dcdb8 100644
---- a/src/backend/apps/apps-section.h
-+++ b/src/backend/apps/apps-section.h
-@@ -13,6 +13,8 @@
-
- #include <gio/gio.h>
- #include <glib-object.h>
-+
-+#define MATEMENU_I_KNOW_THIS_IS_UNSTABLE
- #include <matemenu-tree.h>
-
- #include "../section.h"
-diff --git a/src/frontend/classic/desktop-button.h b/src/frontend/classic/desktop-button.h
-index 2dd9cce..b6e25c3 100644
---- a/src/frontend/desktop-button.h
-+++ b/src/frontend/desktop-button.h
-@@ -13,7 +13,6 @@
-
- #include <glib-object.h>
- #include <gtk/gtk.h>
--#include <matemenu-tree.h>
-
- #include "launcher.h"
-