mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/dmenu-wl: new aport
This commit is contained in:
parent
dea1208b58
commit
3435800fc9
2 changed files with 77 additions and 0 deletions
|
@ -0,0 +1,37 @@
|
|||
From b646f4d14c627d9a4300d9d015fb8e9b5cb2abef Mon Sep 17 00:00:00 2001
|
||||
From: santouits <santouits@users.noreply.github.com>
|
||||
Date: Mon, 6 Jul 2020 03:51:57 +0300
|
||||
Subject: [PATCH] GCC-10 multiple definition progname
|
||||
|
||||
My gcc-10 doesn't like that the draw.h defines progname and then
|
||||
includes it in two .c files. So we define it only in dmenu.c
|
||||
---
|
||||
dmenu.c | 1 +
|
||||
draw.h | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dmenu.c b/dmenu.c
|
||||
index 768fb55..cf1d2f6 100644
|
||||
--- a/dmenu.c
|
||||
+++ b/dmenu.c
|
||||
@@ -40,6 +40,7 @@ struct {
|
||||
int32_t scroll_right;
|
||||
} window_config;
|
||||
|
||||
+const char *progname;
|
||||
|
||||
static uint32_t color_bg = 0x222222ff;
|
||||
static uint32_t color_fg = 0xbbbbbbff;
|
||||
diff --git a/draw.h b/draw.h
|
||||
index d5d80ca..4cafaea 100644
|
||||
--- a/draw.h
|
||||
+++ b/draw.h
|
||||
@@ -103,4 +103,4 @@ void eprintf(const char *fmt, ...);
|
||||
void weprintf(const char *fmt, ...);
|
||||
int32_t round_to_int(double val);
|
||||
|
||||
-const char *progname;
|
||||
+extern const char *progname;
|
||||
--
|
||||
2.48.1
|
||||
|
40
testing/dmenu-wl/APKBUILD
Normal file
40
testing/dmenu-wl/APKBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Contributor: J. Neuschäfer <j.ne@posteo.net>
|
||||
# Maintainer: J. Neuschäfer <j.ne@posteo.net>
|
||||
pkgname=dmenu-wl
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
pkgdesc="dynamic menu for wayland"
|
||||
url="https://github.com/nyyManni/dmenu-wayland"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
makedepends="
|
||||
meson
|
||||
cairo-dev
|
||||
glib-dev
|
||||
pango-dev
|
||||
wayland-dev
|
||||
wayland-protocols
|
||||
libxkbcommon-dev
|
||||
"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://github.com/nyyManni/dmenu-wayland/archive/v$pkgver/dmenu-wl-$pkgver.tar.gz
|
||||
0001-GCC-10-multiple-definition-progname.patch"
|
||||
builddir="$srcdir/dmenu-wayland-$pkgver"
|
||||
options="!check" # doesn't have tests
|
||||
|
||||
build() {
|
||||
abuild-meson \
|
||||
. output
|
||||
meson compile -C output
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
||||
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1edff3ac84cb3262bbe9e1de1c9c567bd762a48c6813b9411fc962dc2b8d91d34ad6c1e1c1875d17cc06b985fe6ec91edf5013b0e33788850ecb99f8bad254c5 dmenu-wl-0.1.tar.gz
|
||||
3a89f6712b772bddbb9c8f88923da62402cc74af8bc499bcd21710f0b999d3a576a0c46b10e0059b9642f2aa573e331a8c510b3df78ffd79770f9303373045de 0001-GCC-10-multiple-definition-progname.patch
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue