Anyone feel like packaging figlet?

When I searched the bundle files for figlet I found one in the zsh and fish bundles but they were nothing I could use. I ended up using the go version and it works but I’d prefer one with a better legend.

1 Like

I realize this is an old post, however…

Install required dependencies:
sudo swupd bundle-add c-basic devpkg-ncurses

Download figlet source code:
wget ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz

Extract the downloaded file:
tar -xzf figlet-2.2.5.tar.gz

Change to extracted directory:
cd figlet-2.2.5

Compile and install:
make
sudo make install

Test:
figlet “Hello, World!”

1 Like

@Enigma: Any suggestions as to how I might be able to package Input Remapper? How about Howdy?

I only have a basic understanding so take it worth a grain of salt.

  1. Create a local clone of the input-remapper repository:
git clone https://github.com/sezanzeb/input-remapper.git
  1. **Create a workspace:**Create a directory to store your packaging files and navigate to it:
mkdir input-remapper-clearlinux cd input-remapper-clearlinux
  1. Create a package.yaml file:

Create a package.yaml file with the necessary metadata for the package. Here’s an example:

vi package.yaml

Add the following content to package.yaml:

name : input-remapper
version : 1.0.0
release : 1
summary : A tool to remap inputs on Linux
license : MIT
url : GitHub - sezanzeb/input-remapper: 🎮 ⌨ An easy to use tool to change the behaviour of your input devices.
description: |
input-remapper is a tool to remap inputs on Linux. It allows users to remap
their keyboard and mouse buttons.

Adjust the version number and release number according to the current version of input-remapper .

  1. Create a Makefile:

In the same directory, create a Makefile to define the build, installation, and clean steps:

vi Makefile

Add the following content to the Makefile:

.PHONY: all install clean

all:
cd …/input-remapper && cargo build --release

install:
install -D -m 0755 …/input-remapper/target/release/input-remapper $(DESTDIR)/usr/bin/input-remapper

clean:
cd …/input-remapper && cargo clean

This Makefile assumes that the input-remapper repository is cloned into the parent directory of your workspace.

Create a bundle file:

Create a bundle file to define the package content for the bundle:

vi input-remapper-bundle

Add the following content to the input-remapper-bundle file:

input-remapper

This simple bundle only includes the input-remapper package.

Good luck

1 Like