92.15. bitwise-0.70
Bit-level manipulation and base conversion, watched live in the terminal
0.70-1 · GPL-3.0-only · 0.1 SBU · 129.6 KiB, 5 files · 41_system, 296 of 1047 · ports/core/cli/bitwise
Homepage: https://github.com/mellowcandle/bitwise
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/cli.txt:
Bit-level manipulation and base conversion watched live, which is the other arithmetic a bench actually does.
Depends on: autoconf, automake, libtool, pkgconf, ncurses, readline.
Required by: no port names it.
Sources: bitwise-0.70.tar.gz (274.9 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install bitwise'
build.sh:
autoreconf -fi
./configure --prefix=/usr \
ac_cv_have_decl_rl_change_environment=yes \
ac_cv_have_decl_rl_input_available_hook=yes
make
make DESTDIR=$PKG install
install -d "$PKG/usr/share/applications"
cat > "$PKG/usr/share/applications/bitwise.desktop" <<'EOF'
[Desktop Entry]
Type=Application
Name=Bit Calculator
GenericName=Bitwise Calculator
Comment=Bases, bit fields and bitwise arithmetic
Exec=bitwise
Icon=accessories-calculator
Terminal=true
Categories=Utility;Calculator;
Keywords=calculator;hex;binary;bits;bitwise;
EOF
chmod 644 "$PKG/usr/share/applications/bitwise.desktop"
Programs: bitwise.
Directories: /usr/share/licenses/bitwise.