Add conty
This commit is contained in:
parent
00bd37861b
commit
1788a1265c
1 changed files with 58 additions and 0 deletions
58
ap/conty/SlackBuild
Executable file
58
ap/conty/SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
Loading…
Reference in a new issue