From 30be913dc247c013ece4cd9b4a704f913d90316b Mon Sep 17 00:00:00 2001 From: Michał Polański Date: Mon, 9 Nov 2020 23:56:25 +0100 Subject: testing/lavalauncher: new aport Simple launcher panel for Wayland desktops https://git.sr.ht/~leon_plickat/lavalauncher --- testing/lavalauncher/APKBUILD | 42 ++++++++++++++++++++++++++++++++++ testing/lavalauncher/off64_t-fix.patch | 29 +++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 testing/lavalauncher/APKBUILD create mode 100644 testing/lavalauncher/off64_t-fix.patch diff --git a/testing/lavalauncher/APKBUILD b/testing/lavalauncher/APKBUILD new file mode 100644 index 00000000000..c49a745b022 --- /dev/null +++ b/testing/lavalauncher/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Michał Polański +# Maintainer: Michał Polański +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 00000000000..6ee82a4c02d --- /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 +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 + -- cgit v1.2.3