new package: libxdg-basedir

This commit is contained in:
Tee KOBAYASHI 2022-10-22 09:32:40 +09:00 committed by xtkoba
parent 2f00e080be
commit c6cc9d4c55
2 changed files with 26 additions and 0 deletions

View File

@ -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
}

View File

@ -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