From c6cc9d4c5539b2dcb66e75c2e1a2cb113b7b0722 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sat, 22 Oct 2022 09:32:40 +0900 Subject: [PATCH] new package: libxdg-basedir --- packages/libxdg-basedir/build.sh | 11 +++++++++++ packages/libxdg-basedir/src-basedir.c.patch | 15 +++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 packages/libxdg-basedir/build.sh create mode 100644 packages/libxdg-basedir/src-basedir.c.patch diff --git a/packages/libxdg-basedir/build.sh b/packages/libxdg-basedir/build.sh new file mode 100644 index 0000000000..b5a36d16b4 --- /dev/null +++ b/packages/libxdg-basedir/build.sh @@ -0,0 +1,11 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/devnev/libxdg-basedir +TERMUX_PKG_DESCRIPTION="An implementation of the XDG Base Directory specifications" +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=1.2.3 +TERMUX_PKG_SRCURL=https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=ff30c60161f7043df4dcc6e7cdea8e064e382aa06c73dcc3d1885c7d2c77451d + +termux_step_pre_configure() { + autoreconf -fi +} diff --git a/packages/libxdg-basedir/src-basedir.c.patch b/packages/libxdg-basedir/src-basedir.c.patch new file mode 100644 index 0000000000..04516a8f14 --- /dev/null +++ b/packages/libxdg-basedir/src-basedir.c.patch @@ -0,0 +1,15 @@ +--- a/src/basedir.c ++++ b/src/basedir.c +@@ -91,9 +91,9 @@ + static const char + DefaultRelativeDataHome[] = DIR_SEPARATOR_STR ".local" DIR_SEPARATOR_STR "share", + DefaultRelativeConfigHome[] = DIR_SEPARATOR_STR ".config", +- DefaultDataDirectories1[] = DIR_SEPARATOR_STR "usr" DIR_SEPARATOR_STR "local" DIR_SEPARATOR_STR "share", +- DefaultDataDirectories2[] = DIR_SEPARATOR_STR "usr" DIR_SEPARATOR_STR "share", +- DefaultConfigDirectories[] = DIR_SEPARATOR_STR "etc" DIR_SEPARATOR_STR "xdg", ++ DefaultDataDirectories1[] = "@TERMUX_PREFIX@" DIR_SEPARATOR_STR "local" DIR_SEPARATOR_STR "share", ++ DefaultDataDirectories2[] = "@TERMUX_PREFIX@" DIR_SEPARATOR_STR "share", ++ DefaultConfigDirectories[] = "@TERMUX_PREFIX@" DIR_SEPARATOR_STR "etc" DIR_SEPARATOR_STR "xdg", + DefaultRelativeCacheHome[] = DIR_SEPARATOR_STR ".cache"; + + static const char