From 9b6d2dea8bd5a7102b30e48aca7c33a76ba2acff Mon Sep 17 00:00:00 2001 From: r1w1s1 <9mqqtl44o@mozmail.com> Date: Fri, 2 Aug 2024 02:31:43 -0300 Subject: [PATCH] Add senpai irc client --- README.md | 5 ++- senpai/README | 17 +++++++++ senpai/senpai.SlackBuild | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ senpai/senpai.info | 10 +++++ senpai/slack-desc | 16 ++++++++ 5 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 senpai/README create mode 100644 senpai/senpai.SlackBuild create mode 100644 senpai/senpai.info create mode 100644 senpai/slack-desc diff --git a/README.md b/README.md index d295567..da987fa 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,15 @@ - [libslirp](libslirp/README) - AP - - [aerc](aerc/README) - [fzf](fzf/README) - [scdoc](scdoc/README) - [todo.txt-cli](todo.txt-cli/README) - [qemu](qemu/README) +- N + - [aerc](aerc/README) + - [senpai](senpai/README) + - XAP - [alacritty](alacritty/README) - [dwm](dwm/README) diff --git a/senpai/README b/senpai/README new file mode 100644 index 0000000..a6bbdc0 --- /dev/null +++ b/senpai/README @@ -0,0 +1,17 @@ +# Senpai IRC Client + +Senpai is a modern, feature-rich IRC client designed to provide an exceptional +user experience with advanced functionality and customization options. Whether +you are new to IRC or a seasoned user, Senpai has the tools and features you +need. + +## Features + +- **Sleek Modern Interface**: Intuitive and user-friendly design. +- **Multi-Server Support**: Connect to multiple servers and channels + simultaneously. +- **Scriptable Actions**: Automate tasks with custom scripts. +- **Extensive Customization**: Tailor the client to your preferences. +- **Secure Communication**: SSL support for secure connections. +- **Detailed Logging**: Keep track of your conversations and activities. +- **User Management**: Manage users with ease. diff --git a/senpai/senpai.SlackBuild b/senpai/senpai.SlackBuild new file mode 100644 index 0000000..d8eb1da --- /dev/null +++ b/senpai/senpai.SlackBuild @@ -0,0 +1,98 @@ +#!/bin/bash +# +# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +# Version 2, December 2004 +# +# Copyright (C) 2004 Sam Hocevar +# +# Everyone is permitted to copy and distribute verbatim or modified +# copies of this license document, and changing it is allowed as long +# as the name is changed. +# +# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +# +# +# 0. You just DO WHAT THE FUCK YOU WANT TO. +# +# SlackBuild script for senpai +# ============================= +# By: r1w1s1@disroot.org +# For: senpai +# Descr: Your everyday IRC student +# URL: https://git.sr.ht/~delthas/senpai +# Changelog: +# v0.03.0: 01/August/2024 by r1w1s1 - Initial build. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=senpai +VERSION=${VERSION:-0.3.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +ARCH=${ARCH:-x86_64} + +TMP=${TMP:-/tmp/SBo} +PKG=${TMP}/package-${PRGNAM} +PKGTYPE=${PKGTYPE:-tgz} +OUTPUT=${OUTPUT:-/tmp} + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +# Clean up any previous build artifacts +rm -rf "$PKG" +mkdir -p "$TMP" "$PKG" "$OUTPUT" +cd "$TMP" + +# Download and extract the source code +rm -rf "${PRGNAM}-${VERSION}" +wget -O "${PRGNAM}-${VERSION}.tar.gz" "https://git.sr.ht/~delthas/senpai/archive/v${VERSION}.tar.gz" +tar xvf "${PRGNAM}-${VERSION}.tar.gz" +cd "${PRGNAM}-v${VERSION}" + +# Compile the source +mkdir -p "$TMP/go-cache" "$TMP/go-tmpdir" "$TMP/go" +export GOCACHE="${GOCACHE:-"$TMP/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$TMP/go-tmpdir"}" +export GOMODCACHE="${GOMODCACHE:-"$TMP/go"}" +export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 +export SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}" + +make PREFIX=/usr || exit 1 + +# Install the compiled binaries to the package directory +make install PREFIX=/usr DESTDIR="$PKG" || exit 1 + +# Copy documentation +mkdir -p "$PKG/usr/doc/${PRGNAM}-${VERSION}" +cp -a README.md LICENSE \ + "$PKG/usr/doc/${PRGNAM}-${VERSION}" + +# Compress man pages and fix symlinks +find "$PKG/usr/share/man" -type f -exec gzip -9 {} \; +for i in $(find "$PKG/usr/share/man" -type l); do + ln -s "$(readlink "$i").gz" "$i.gz" + rm "$i" +done + +# Copy the SlackBuild script into the package documentation +cat "$CWD/${PRGNAM}.SlackBuild" > "$PKG/usr/doc/${PRGNAM}-${VERSION}/${PRGNAM}.SlackBuild" + +# Copy the slack-desc file +mkdir -p "$PKG/install" +cat "$CWD/slack-desc" > "$PKG/install/slack-desc" + +# Create the package +cd "$PKG" +/sbin/makepkg -l y -c n "$OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE}" + +# Generate MD5 checksum +cd "$OUTPUT" +md5sum "${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE}" > "${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE}.md5" + diff --git a/senpai/senpai.info b/senpai/senpai.info new file mode 100644 index 0000000..473da21 --- /dev/null +++ b/senpai/senpai.info @@ -0,0 +1,10 @@ +PRGNAM="senpai" +VERSION="0.3.0" +HOMEPAGE="https://git.sr.ht/~delthas/senpai" +DOWNLOAD="https://git.sr.ht/~delthas/senpai/archive/v0.3.0.tar.gz" +MD5SUM="bdcfc0b495fac1a0435c1268283f2c1a" +DOWNLOAD_x86_64="UNSUPPORTED" +MD5SUM_x86_64="" +REQUIRES="google-go-lang scdoc" +MAINTAINER="r1w1s1" +EMAIL="r1w1s1@disroot.org" diff --git a/senpai/slack-desc b/senpai/slack-desc new file mode 100644 index 0000000..de2cd91 --- /dev/null +++ b/senpai/slack-desc @@ -0,0 +1,16 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line up the first '|' above the ':' following the base name, and the '|' on the right side marks the last column you can put a character in. You must make exactly 11 lines for the formatting to be correct. It's also customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +senpai: Senpai - A modern, feature-rich IRC client +senpai: +senpai: Senpai is an advanced IRC client designed for ease of use and +senpai: versatility. It features a sleek, modern interface and supports +senpai: multiple servers and channels, scriptable actions, and extensive +senpai: customization options. Senpai is built for both newcomers and +senpai: experienced users, offering a powerful set of tools to enhance +senpai: your IRC experience. It also supports SSL for secure communication +senpai: and provides detailed logging and user management features. +senpai: +senpai: Home page: https://git.sr.ht/~delthas/senpai +senpai: -- 2.11.4.GIT