From d91789cf42d88852709bfc62fab5f242a36fdf84 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 18 Jul 2024 18:21:11 +0200 Subject: meson/nanosvg: add support for linking against system's nanosvg Nanosvg upstream is header only, and does not support/provide a library, neither shared nor static. However, most distributions still provide a nanosvg package with either a static library, or shared. Arch does the latter. So, let's support building against a system provided nanosvg library. The default is still to use bundled version, but this can be changed with -Dsystem-nanosvg=enabled when configuring the build tree. --- PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index 382637b..8810f9d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,12 +1,12 @@ pkgname=wbg -pkgver=1.2.0 +pkgver=1.2.0.r13.gd687493 pkgrel=1 pkgdesc="Super simple wallpaper application" arch=('x86_64' 'aarch64') url=https://codeberg.org/dnkl/wbg license=(mit) makedepends=('meson' 'ninja' 'wayland-protocols' 'tllist>=1.0.1') -depends=('wayland' 'pixman' 'libjpeg-turbo' 'libpng' 'libwebp' 'libjxl') +depends=('wayland' 'pixman' 'nanosvg' 'libjpeg-turbo' 'libpng' 'libwebp' 'libjxl') source=() changelog=CHANGELOG.md @@ -16,7 +16,7 @@ pkgver() { } build() { - meson --prefix=/usr --buildtype=release --wrap-mode=nofallback .. + meson --prefix=/usr --buildtype=release --wrap-mode=nofallback -Dsystem-nanosvg=enabled .. ninja } -- cgit v1.2.3