aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHakan Erduman <hakan@erduman.de>2022-02-22 08:18:09 +0000
committeralice <alice@ayaya.dev>2022-02-22 08:21:12 +0000
commitaa4d8ccd2260a95c8842dd7335d0041423a2454e (patch)
tree26d40d59100e34f3b5a4fd8cbb88adca573fb489
parenta63bf56aa93f7454628568201726f4fd37bd06f7 (diff)
downloadaports-aa4d8ccd2260a95c8842dd7335d0041423a2454e.tar.gz
aports-aa4d8ccd2260a95c8842dd7335d0041423a2454e.tar.bz2
aports-aa4d8ccd2260a95c8842dd7335d0041423a2454e.tar.xz
testing/xfce4-docklike-plugin: new aport
This is a modern, minimalist taskbar for Xfce. Given its age of roughly a year, it is one of the newest xfce panel plugins that are hosted at the xfce repository. I am willing to maintain this for the time being.
-rw-r--r--testing/xfce4-docklike-plugin/0001-basename-called-but-libgen.h-not-included.patch56
-rw-r--r--testing/xfce4-docklike-plugin/APKBUILD39
2 files changed, 95 insertions, 0 deletions
diff --git a/testing/xfce4-docklike-plugin/0001-basename-called-but-libgen.h-not-included.patch b/testing/xfce4-docklike-plugin/0001-basename-called-but-libgen.h-not-included.patch
new file mode 100644
index 0000000000..81624f468a
--- /dev/null
+++ b/testing/xfce4-docklike-plugin/0001-basename-called-but-libgen.h-not-included.patch
@@ -0,0 +1,56 @@
+From 1af295dba41c2a5a6a91b83ce4eebc0cf6225598 Mon Sep 17 00:00:00 2001
+From: Hakan Erduman <hakan@erduman.de>
+Date: Fri, 7 Jan 2022 18:22:43 +0100
+Subject: [PATCH] basename() called but <libgen.h> not included
+
+ Seen while porting to alpine linux.
+ This compiles on GNU libc since it is not posixly strict
+ enough in regard to header files but fails on e.g. musl
+ or other c libraries.
+
+ The patch adresses this by using g_path_get_basename from
+ glib instead. This may also help compilation on the *BSDs.
+ and void linux, musl variety.
+---
+ src/Helpers.cpp | 2 +-
+ src/Wnck.cpp | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/Helpers.cpp b/src/Helpers.cpp
+index ece3e95..086dff3 100644
+--- a/src/Helpers.cpp
++++ b/src/Helpers.cpp
+@@ -83,7 +83,7 @@ namespace Help
+ {
+ char buffer[1024];
+ strcpy(buffer, str.c_str());
+- return basename(buffer);
++ return g_path_get_basename(buffer);
+ }
+
+ std::string trim(const std::string str)
+diff --git a/src/Wnck.cpp b/src/Wnck.cpp
+index 2ab598f..1c08335 100644
+--- a/src/Wnck.cpp
++++ b/src/Wnck.cpp
+@@ -35,7 +35,7 @@ namespace Wnck
+ int nbr = read(fd, buffer, 512);
+ ::close(fd);
+
+- char* exe = basename(buffer);
++ char* exe = g_path_get_basename(buffer);
+ if (strcmp(exe, "python") != 0) // ADDIT graphical interpreters here
+ return exe;
+
+@@ -44,7 +44,7 @@ namespace Wnck
+ ;
+
+ if (it < buffer + nbr)
+- return basename(it);
++ return g_path_get_basename(it);
+ }
+
+ // fallback : return window's name
+--
+2.34.1
+
diff --git a/testing/xfce4-docklike-plugin/APKBUILD b/testing/xfce4-docklike-plugin/APKBUILD
new file mode 100644
index 0000000000..f8324567cb
--- /dev/null
+++ b/testing/xfce4-docklike-plugin/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Hakan Erduman <hakan@erduman.de>
+pkgname=xfce4-docklike-plugin
+pkgver=0.4.0
+pkgrel=0
+pkgdesc="Modern, minimalist taskbar for Xfce"
+url="https://docs.xfce.org/panel-plugins/xfce4-docklike-plugin/start"
+arch="all"
+license="GPL-3.0-only"
+makedepends="xfce4-panel-dev libxfce4ui-dev libwnck3-dev"
+subpackages="$pkgname-lang"
+source="https://archive.xfce.org/src/panel-plugins/xfce4-docklike-plugin/${pkgver%.*}/xfce4-docklike-plugin-$pkgver.tar.bz2
+ 0001-basename-called-but-libgen.h-not-included.patch
+ "
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="
+4da41fc9ebae96e706ce4def8c34d214bcd92910a19ea89d3a83bb2a24665a2382d5006908048756501c7e21475b5ff4043eedf6463a8b5294eaa2b2720149bc xfce4-docklike-plugin-0.4.0.tar.bz2
+1b9ac50fd20f1bbe17a7287326e69a8e86b8715209a03392a522b44bbe06912210f035e726979a0304222ac4bfd72e6c985906ec29ffbf4d23380fbfd4780da4 0001-basename-called-but-libgen.h-not-included.patch
+"