From 7d7b1f0319ed9bb19e0a0edb1a1c1664bdeb5188 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 6 Jul 2026 00:06:27 +0300 Subject: [PATCH] ports: Add libspng port --- ports/libspng/build.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 ports/libspng/build.sh diff --git a/ports/libspng/build.sh b/ports/libspng/build.sh new file mode 100755 index 00000000..031b5890 --- /dev/null +++ b/ports/libspng/build.sh @@ -0,0 +1,27 @@ +#!/bin/bash ../install.sh + +NAME='libspng' +VERSION='0.7.4' +DOWNLOAD_URL="https://github.com/randy408/libspng/archive/v0.7.4.tar.gz#47ec02be6c0a6323044600a9221b049f63e1953faf816903e7383d4dc4234487" +DEPENDENCIES=('zlib') +CONFIGURE_OPTIONS=( + '-Dprefix=/usr' + '-Dbuildtype=release' + '-Dbuild_examples=false' +) + +configure() { + meson setup \ + --reconfigure \ + --cross-file "$MESON_CROSS_FILE" \ + "${CONFIGURE_OPTIONS[@]}" \ + build || exit 1 +} + +build() { + meson compile -C build || exit 1 +} + +install() { + meson install --destdir="$DESTDIR" -C build || exit 1 +}