aboutsummaryrefslogtreecommitdiffstats
path: root/community/rofi-wayland/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/rofi-wayland/APKBUILD')
-rw-r--r--community/rofi-wayland/APKBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/community/rofi-wayland/APKBUILD b/community/rofi-wayland/APKBUILD
new file mode 100644
index 00000000000..84dae125f54
--- /dev/null
+++ b/community/rofi-wayland/APKBUILD
@@ -0,0 +1,66 @@
+# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=rofi-wayland
+_projname=rofi
+pkgver=1.7.5_p3
+_pkgver="${pkgver%_p*}+wayland${pkgver#*_p}"
+pkgrel=0
+pkgdesc="Window switcher, run dialog and dmenu replacement - fork with wayland support"
+url="https://github.com/lbonn/rofi"
+arch="all"
+license="MIT"
+depends="!rofi rofi-themes>=${pkgver%.*}"
+makedepends="
+ bison
+ cairo-dev
+ flex
+ gdk-pixbuf-dev
+ glib-dev
+ libxkbcommon-dev
+ meson
+ pango-dev
+ ronn
+ wayland-dev
+ wayland-protocols
+ "
+checkdepends="check-dev cppcheck xkeyboard-config-dev"
+provider_priority=10 # lowest (other provider is rofi aport)
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/lbonn/rofi/releases/download/$_pkgver/rofi-$_pkgver.tar.gz
+ rofi-sensible-terminal-use-sh.patch
+ disable-scrollbar-test.patch
+ 0001-format-string-test-Fix-for-GLib-2.73.1-e-time-format.patch_libnkutils
+ "
+builddir="$srcdir/$_projname-$_pkgver"
+
+case "$CARCH" in
+ # libnkutils:format-string crashes on SIGSEGV
+ riscv64) options="!check";;
+esac
+
+build() {
+ abuild-meson \
+ -Dxcb=disabled \
+ -Dcheck=disabled \
+ . output
+ meson compile -C output
+}
+
+check() {
+ meson test --no-rebuild --print-errorlogs -C output
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
+
+ # Themes are provided by package rofi-themes from the rofi aport.
+ rm -rf "$pkgdir"/usr/share/rofi/themes
+}
+
+sha512sums="
+f1cc5f59b61c81ada08bbbeaeabb548993d95ad3fc95a15a1ed58f9619a45925a6f3efd624a7d0bf6404f322d8a0587f0f763c7b59dfd568545174855629feb1 rofi-1.7.5+wayland3.tar.gz
+13a93621337b4f317031da9007ed9d426b055190fc946a87eb12333469f9a23e85763e2c1e0492ff2d1d50ceebd429d8125a0b275d1ab0573a4d10cd812bccd9 rofi-sensible-terminal-use-sh.patch
+e00b6ad74ed482ce5a77e7311ad6797481440825006fded5676b5417548bc93b4baa39b80f0f86e645d804dd2e606a894384d7974e10739193561c56af6343f1 disable-scrollbar-test.patch
+dc1eb60339e9edd1a1ed7f6e28ea527a4fe5f7a6f5e9363aec6164a99fa6dbf79d12778d3395f979623e607d3e1431c55398d2b6ac0004b6aa60e4156f7a1b12 0001-format-string-test-Fix-for-GLib-2.73.1-e-time-format.patch_libnkutils
+"