From 1788a1265ca12d3824fab74e19ab0468de79db2f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 26 Apr 2021 00:07:07 +0200 Subject: [PATCH] Add conty --- ap/conty/SlackBuild | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 ap/conty/SlackBuild diff --git a/ap/conty/SlackBuild b/ap/conty/SlackBuild new file mode 100755 index 00000000..3c6c5992 --- /dev/null +++ b/ap/conty/SlackBuild @@ -0,0 +1,58 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/Kron4ek/Conty/releases/latest | grep tag_name | grep -o "[0-9.]*")} +ARCH=${ARCH:-$(uname -m)} +BUILD=${BUILD:-1} +TAG=${TAG:-gwh} + +TMP=${TMP:-/tmp/$TAG} +PKG=$TMP/pkg-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} +PREFIX=/usr + +GITEA_WORK_DIR=/var/lib/gitea + +wget -c https://github.com/Kron4ek/Conty/releases/download/${VERSION}/conty.sh -O $CWD/conty.sh + +rm -fr $PKG + +mkdir -p $PKG$PREFIX/bin +mv $CWD/conty.sh $PKG$PREFIX/bin/${PRGNAM} +chmod +x $PKG$PREFIX/bin/${PRGNAM} + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/install +cat < $PKG/install/slack-desc + # 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 package 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--------------------------------------------------------| +$PRGNAM: $PRGNAM (Easy to use non-root container packed into a single executable) +$PRGNAM: +$PRGNAM: a portable Arch Linux distro packed into a single executable that can +$PRGNAM: be used to run any applications +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/Kron4ek/Conty +$PRGNAM: +EOF + +cd $PKG +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la + +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz