Skip to content
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

[Package]: rounded BSPWM. #1322

Open
14 of 16 tasks
ReeaoX opened this issue Nov 21, 2024 · 1 comment
Open
14 of 16 tasks

[Package]: rounded BSPWM. #1322

ReeaoX opened this issue Nov 21, 2024 · 1 comment

Comments

@ReeaoX
Copy link

ReeaoX commented Nov 21, 2024

Name

bspwm-rounded

Home page URL

https://github.com/phuhl/bspwm-rounded/tree/round_corners

Source code URL

https://github.com/phuhl/bspwm-rounded/archive/refs/tags/0.9.10.zip

Packaging policy acknowledgement

Additional information

The build.sh of bspwm-rounded.

TERMUX_PKG_HOMEPAGE=https://github.com/phuhl/bspwm-rounded/tree/round_corners
TERMUX_PKG_DESCRIPTION="The received fork of BSPWM. But developed inside rounded corner workaround."
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.9.10
TERMUX_PKG_REVISION=6
TERMUX_PKG_SRCURL="https://github.com/phuhl/bspwm-rounded/archive/refs/tags/$TERMUX_PKG_VERSION.zip"
TERMUX_PKG_SHA256="1f2d04fa13d6bf3d19290303030ad07d4ae4bb6c7c96101120d79842e3bdca7a"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE="newset-tag"
TERMUX_PKG_DEPENDS="git, git-lfs, libxcb, patch, patchelf, python, python-ensurepip-wheels, python-pip, rust, rustc-dev, rustc-src, sxhkd, xcb-util, xcb-util-cursor, xcb-util-image, xcb-util-keysyms, xcb-util-renderutil, xcb-util-wm"
TERMUX_PKG_SUGGESTS="chromium, kitty, picom"
TERMUX_PKG_BUILD_DEPENDS="build-essential"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="prefix=/data/data/com.termux/files/usr"

termux_step_pre_configure() {
   TERMUX_LOCAL_DIR="${PREFIX}/opt/termux-local"

   mkdir --parent --verbose --mode=755 ${TERMUX_LOCAL_DIR}
   ln -sf ${TERMUX_LOCAL_DIR} ${PREFIX}/local
   ln -sf ${TERMUX_LOCAL_DIR} ${HOME}/.global_local

   mkdir --parent --verbose --mode=755 ${TERMUX_LOCAL_DIR}/bin
   echo -e "PATH+=':/data/data/com.termux/files/usr/local/bin'" > ${PREFIX}/etc/profile.d/local-path.sh

   sed -i -E '1 i\#!/data/data/com.termux/files/usr/bin/bash\' ${PREFIX}/etc/profile.d/local-path.sh
   chmod 755 ${PREFIX}/etc/profile.d/local-path.sh
   ${PREFIX}/etc/profile.d/local-path.sh
}

termux_step_post_make_install() {
   shopt -s expand_aliases
   ln -sf ${PREFIX}/bin/bspwm ${PREFIX}/local/bin/bspwm-loca

   echo -e "alias bspwm='bspwm-local'" > ${PREFIX}/etc/profile.d/local-alias.sh
   sed -i -E '1 i\#!/data/data/com.termux/files/usr/bin/bash\' ${PREFIX}/etc/profile.d/local-alias.sh
   chmod --verbose 755 ${PREFIX}/etc/profile.d/local-alias.sh
   ${PREFIX}/etc/profile.d/local-alias.sh

   $(python3 --version | sed -E "s|[[:space:]]||g;s|Python|pip|g" | cut -d '.' -f 1) install rich cli-box python-dotenv python-decouple --upgrade
   git clone --depth=1 https://github.com/ReeaoX/bsphelp.git ${HOME}/bsphelp-git

   sed -i -e $'$a\\\nalias bsphelp="${HOME}/bsphelp-git/usr/bin/bin-cmd.py"' ${PREFIX}/etc/profile.d/local-alias.sh
   ${PREFIX}/etc/profile.d/local-alias.sh
}

termux_step_post_massage() {
   BSPWM_CONFIG_DIR="${HOME}/.config/bspwm"
   SXHKD_CONFIG_DIR="${HOME}/.config/sxhkd"

   mkdir --parent --verbose --mode=755 ${BSPWM_CONFIG_DIR}
   mkdir --parent --verbose --mode=755 ${SXHKD_CONFIG_DIR}

   cp --recursive --force --verbose ${PREFIX}/share/doc/bspwm/examples/bspwmrc ${BSPWM_CONFIG_DIR}
   cp --recursive --force --verbose ${PREFIX}/share/doc/bspwm/examples/sxhkdrc ${SXHKD_CONFIG_DIR}

   chmod --verbose 755 ${BSPWM_CONFIG_DIR}/bspwmrc
   chmod --verbose 755 ${SXHKD_CONFIG_DIR}/sxhkdrc
   sed -i -E "s|/bin/sh|/data/data/com.termux/files/usr/bin/bash|g" ${BSPWM_CONFIG_DIR}/bspwmrc
}

Requirement.

  1. python group.
    1.1. python ver. 3 or later.
    1.2. pip that matched python 3 or later. This recursively included ensurepip.
    1.3. ensurepip wheel to solve other pip packages.
    1.4. 4 pip package.
    1.4.1. rich to write the color-able table.
    14.2. cli-box to write the text inside the box.
    1.4.3. Python variant of dotenv (NodeJS variant is existed yet) to load .env-formatted config.
    1.4.4. decouple to define the system variables.
  2. rust group to solve python's .toml. Because that the trusted way what rust used.
    2.1. rust and it's compiler.
    2.1.1. rust.
    2.1.2. rustc group. But excluded rustc-nightly.
    2.2. cargo (already included in rust package, or such as rustc metapackage(?)).
  3. llvm (required to install rust/rustc).
  4. bsphelp (the parody of bspwm --help, but optioned into python).
  5. See this extra requirement that i boughted from "bspwm-termux"'s README.md.
  6. automake.
  7. patch group.
    7.1. patch.
    7.2. patchelf.
  8. git group.
    8.1. git.
    8.2. git-lfs.

Optional requirement.

  1. chromium/chrome. Or such as firefox/gecko.
  2. gh/glab.
  3. Terminals (such as xfce4-terminal, qterminal, alacritty, etc).
    3.1. kitty (default terminal from sxhkdrc).
    3.2. alacritty (recommended).

References.

640px-The_GNU_logo

Issue/PR that i stated.

github-colored-logo-FDDF6EB1F0-seeklogo com

@ReeaoX
Copy link
Author

ReeaoX commented Nov 30, 2024

This pull request effectively founded @robertkirkman, as the recreation of itself. And closed after their failure:

Fortunately. The script would be uploaded at Github Gist. The ability to upload in Github without repository, or requiring README.md/txt. And as soon, as this pull request would moved into Gitlab remaining. If tur have the Gitlab repository, at least.

This issues is remained searching for the approval, after this pull request closed. But can close recursively, if their responsetur for creating Mario games (yet, they Mario fan).

image_thumb_6

Notice: this Github screenshot is shown, after the pull request closed. But this issue remained operating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant