这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(x11/icewm): set $TERMUX_PREFIX throughout the software #25466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions x11-packages/icewm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Window manager with goals of speed, simplicity, and usab
TERMUX_PKG_LICENSE="LGPL-2.0-only"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="3.8.1"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://github.com/ice-wm/icewm/releases/download/$TERMUX_PKG_VERSION/icewm-$TERMUX_PKG_VERSION.tar.lz"
TERMUX_PKG_SHA256=3c525512b1e4f4cf7999a4687f1b82311d7448d8c174780b5efd3b8aafbfb4a2
TERMUX_PKG_AUTO_UPDATE=true
Expand All @@ -19,4 +20,10 @@ termux_step_pre_configure() {
fi

LDFLAGS+=" -landroid-glob -landroid-wordexp"

# Every instance of '/usr' in the code is replaceable with '$TERMUX_PREFIX'.
find "$TERMUX_PKG_SRCDIR" -type f | \
xargs -n 1 sed -i \
-e "s|/usr|$TERMUX_PREFIX|g" \
-e "s|/etc|$TERMUX_PREFIX/etc|g"
}