From a969e55bf286db4a0e0fc0678768f10d10c6a7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Hickersberger?= Date: Sat, 24 Jun 2023 11:59:20 +0200 Subject: [PATCH] Ports: Add libfts port This ports an implementation of the FTS functions that can be used to traverse the file system. They are non-standard, but provided by glibc and most BSD systems. This ported library implements FTS for musl-based Linux systems and happens to work on Serenity. --- Ports/AvailablePorts.md | 1 + Ports/libfts/package.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 Ports/libfts/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 470d09f359..f163dd1da7 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -137,6 +137,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`libexpat`](libexpat/) | Expat | 2.4.8 | https://libexpat.github.io/ | | [`libffi`](libffi/) | libffi | 3.4.2 | https://www.sourceware.org/libffi/ | | [`libfftw3f`](libfftw3f/) | Fastest Fourier Transform in the West (single precision) | 3.3.10 | https://www.fftw.org/ | +| [`libfts`](libfts/) | libfts | 1.2.7 | https://github.com/void-linux/musl-fts | | [`libgcrypt`](libgcrypt/) | libgcrypt | 1.10.1 | https://gnupg.org/software/libgcrypt/index.html | | [`libgd`](libgd/) | libgd | 2.3.3 | https://libgd.github.io/ | | [`libgpg-error`](libgpg-error/) | libgpg-error | 1.45 | https://gnupg.org/software/libgpg-error/index.html | diff --git a/Ports/libfts/package.sh b/Ports/libfts/package.sh new file mode 100755 index 0000000000..57478a80b9 --- /dev/null +++ b/Ports/libfts/package.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='libfts' +version='1.2.7' +files=( + "https://github.com/void-linux/musl-fts/archive/refs/tags/v${version}.tar.gz 49ae567a96dbab22823d045ffebe0d6b14b9b799925e9ca9274d47d26ff482a6" +) +workdir="musl-fts-${version}" +useconfigure='true' + +pre_configure() { + pushd $workdir + ./bootstrap.sh + popd +}