aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-11-09 23:56:25 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-11-10 00:13:43 +0000
commit30be913dc247c013ece4cd9b4a704f913d90316b (patch)
tree2b35d2dddd941b6a38860ddaf601bca49487d94c
parenteae87563e85c85de34d709e0039a14bc6459e438 (diff)
downloadaports-30be913dc247c013ece4cd9b4a704f913d90316b.tar.gz
aports-30be913dc247c013ece4cd9b4a704f913d90316b.tar.bz2
aports-30be913dc247c013ece4cd9b4a704f913d90316b.tar.xz
testing/lavalauncher: new aport
Simple launcher panel for Wayland desktops https://git.sr.ht/~leon_plickat/lavalauncher
-rw-r--r--testing/lavalauncher/APKBUILD42
-rw-r--r--testing/lavalauncher/off64_t-fix.patch29
2 files changed, 71 insertions, 0 deletions
diff --git a/testing/lavalauncher/APKBUILD b/testing/lavalauncher/APKBUILD
new file mode 100644
index 0000000000..c49a745b02
--- /dev/null
+++ b/testing/lavalauncher/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Michał Polański <michal@polanski.me>
+# Maintainer: Michał Polański <michal@polanski.me>
+pkgname=lavalauncher
+pkgver=2.0.0
+pkgrel=0
+pkgdesc="Simple launcher panel for Wayland desktops"
+url="https://git.sr.ht/~leon_plickat/lavalauncher"
+license="GPL-3.0-or-later"
+arch="all"
+makedepends="
+ meson
+ cairo-dev
+ wayland-dev
+ wayland-protocols
+ scdoc
+ "
+subpackages="$pkgname-doc"
+source="$pkgname-v$pkgver.tar.gz::https://git.sr.ht/~leon_plickat/lavalauncher/archive/v$pkgver.tar.gz
+ off64_t-fix.patch"
+builddir="$srcdir/$pkgname-v$pkgver"
+
+# enable SVG image support where possible
+case "$CARCH" in
+ s390x|mips64) ;;
+ *) makedepends="$makedepends librsvg-dev" ;;
+esac
+
+build() {
+ abuild-meson . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+ meson test --no-rebuild -v -C output
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
+}
+
+sha512sums="e64e7cc394a5165a5b43c6c0db3f99b43d44b0b71cb75aa60d8a431ca7a39e1af50b822dc0d6ff86620029021852442a45fce302214e927929dbee627ec51c18 lavalauncher-v2.0.0.tar.gz
+b93d30525ac872173de23c952fd40b6c7961ac32cb6e45d9f13a7f33d86e456898b309747fa065fdfcbc7d920fb9ae464cadee879a5b161c1b1d8decde49da7d off64_t-fix.patch"
diff --git a/testing/lavalauncher/off64_t-fix.patch b/testing/lavalauncher/off64_t-fix.patch
new file mode 100644
index 0000000000..6ee82a4c02
--- /dev/null
+++ b/testing/lavalauncher/off64_t-fix.patch
@@ -0,0 +1,29 @@
+Upstream: Yes
+
+From 542e8c9488890c87a39c3a128275ad8035061552 Mon Sep 17 00:00:00 2001
+From: Jan Beich <jbeich@FreeBSD.org>
+Date: Fri, 18 Sep 2020 15:34:46 +0200
+Subject: [PATCH] types: avoid casting to non-standard __off64_t
+
+off_t is always 64-bit on BSDs but only FreeBSD added off64_t compatibility.
+Meson passes -D_FILE_OFFSET_BITS=64 by default, so there's no need for off64_t.
+---
+ src/types/buffer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/types/buffer.c b/src/types/buffer.c
+index ba1c941..e6f80f3 100644
+--- a/src/types/buffer.c
++++ b/src/types/buffer.c
+@@ -78,7 +78,7 @@ static bool get_shm_fd (int *fd, size_t size)
+ if ( *fd >= 0 )
+ {
+ shm_unlink(name);
+- if ( ftruncate(*fd, (__off64_t)size) < 0 )
++ if ( ftruncate(*fd, (off_t)size) < 0 )
+ {
+ close(*fd);
+ return false;
+--
+2.26.2
+