merge
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
commit
b185635516
10 changed files with 365 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
BRANCH=${BRANCH:="ALPHA"}
|
||||
BRANCH=${BRANCH:="CURRENT"}
|
||||
VERSION=${VERSION:=${BRANCH}_$(date +%F | tr - .)}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=${BUILD:-2}
|
||||
|
|
|
@ -5,10 +5,9 @@ CWD=$(pwd)
|
|||
|
||||
PRGNAM=$(basename $CWD)
|
||||
ARCH=$(uname -m)
|
||||
VERSION=$(curl http://downloads.factorcode.org/releases/ | grep -o "[0-9.]*/" | grep -v "^/" | tr -d / | sort | tail -n1)
|
||||
VERSION=$(curl -s https://api.github.com/repos/factor/factor/releases/latest | grep tag_name | grep -o "[0-9.]*")
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=cyco
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
|
|
78
d/mint/SlackBuild
Executable file
78
d/mint/SlackBuild
Executable file
|
@ -0,0 +1,78 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=" -O "
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-*
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
[ ! -e $REPOSITORY ] && git clone https://github.com/mint-lang/mint.git $REPOSITORY
|
||||
|
||||
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# configuration
|
||||
shards install
|
||||
|
||||
# compilation
|
||||
crystal build src/mint.cr -o mint -p --error-trace
|
||||
make documentation
|
||||
|
||||
# installation
|
||||
mkdir -p $PKG$PREFIX/{bin,doc}/
|
||||
cp mint $PKG$PREFIX/bin/
|
||||
cp -R docs $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# Strip binaries
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (A refreshing programming language for the front-end web.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: A refreshing programming language for the front-end web, aiming to solve the most
|
||||
$PRGNAM: common issues of Single Page Applications (SPAs) at a language level.
|
||||
$PRGNAM: While focusing on: Developer happiness, Fast compilation, Readability
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://www.mint-lang.com/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -70,7 +70,7 @@ $PRGNAM:
|
|||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/nextcloud/desktop
|
||||
$PRGNAM: https://github.com/louisrubet/rpn
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
|
|
76
d/scry/SlackBuild
Executable file
76
d/scry/SlackBuild
Executable file
|
@ -0,0 +1,76 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=" -O "
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-*
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
[ ! -e $REPOSITORY ] && git clone https://github.com/crystal-lang-tools/scry.git $REPOSITORY
|
||||
|
||||
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# compilation
|
||||
shards build --verbose --release
|
||||
|
||||
# installation
|
||||
mkdir -p $PKG$PREFIX/{bin,doc/$PRGNAM}/
|
||||
cp bin/scry $PKG$PREFIX/bin/
|
||||
cp bin/ci $PKG$PREFIX/bin/scry-ci
|
||||
cp bin/format $PKG$PREFIX/bin/scry-format
|
||||
cp CHANGELOG.md LICENSE README.md $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# Strip binaries
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Scry is a code analysis server for Crystal)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Scry is a code analysis server for Crystal. It is an implementation of a
|
||||
$PRGNAM: common language protocol. It is being built as a server for VSCode, but
|
||||
$PRGNAM: is compatible with any client that implements this protocol.
|
||||
$PRGNAM:
|
||||
$PRGNAM: The server is implemented in Crystal.
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/crystal-lang-tools/scry
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -95,6 +95,7 @@ CFLAGS="$SLKCFLAGS" \
|
|||
--with-compress-install \
|
||||
--without-gconf \
|
||||
--with-gameuser=":games" \
|
||||
--with-modules \
|
||||
--disable-libsystemd \
|
||||
--disable-build-details \
|
||||
--build=${ARCH}-slackware-linux
|
||||
|
|
106
n/minecraft-server/SlackBuild
Executable file
106
n/minecraft-server/SlackBuild
Executable file
|
@ -0,0 +1,106 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
# Check if the minecraft user and group exist. If not, then bail.
|
||||
if [ "$(id -g minecraft 2> /dev/null)" != "987" -o "$(id -u minecraft 2> /dev/null)" != "987" ]; then
|
||||
echo " You must have an 'minecraft' user and group to run this script."
|
||||
echo " # groupadd -g 987 minecraft"
|
||||
echo " # useradd -d /opt/$PRGNAM -g minecraft -s /bin/bash -u 987 minecraft --system "
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(curl https://www.minecraft.net/en-us/download/server | grep "minecraft_server.*\.jar" -o | grep -o "[0-9][0-9.]*[0-9]" | head -n1)}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-cyco}
|
||||
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
PREFIX=/usr
|
||||
|
||||
wget -c $(curl https://www.minecraft.net/en-us/download/server | grep -o "https.*server\.jar") -O $CWD/$PRGNAM.jar
|
||||
|
||||
rm -fr $PKG
|
||||
|
||||
mkdir -p $PKG/opt/$PRGNAM
|
||||
mv $CWD/$PRGNAM.jar $PKG/opt/$PRGNAM/$PRGNAM.jar
|
||||
cat <<EOF > $PKG/opt/$PRGNAM/start.sh
|
||||
#!/bin/sh
|
||||
java -Xms1G -Xmx1G -jar /opt/$PRGNAM/$PRGNAM.jar nogui
|
||||
EOF
|
||||
chmod +x $PKG/opt/$PRGNAM/start.sh
|
||||
chown -R minecraft:minecraft $PKG/opt/$PRGNAM/
|
||||
|
||||
mkdir -p $PKG/etc/rc.d/
|
||||
cat <<EOF > $PKG/etc/rc.d/rc.$PRGNAM
|
||||
#!/bin/bash
|
||||
#Slackware startup deamon script
|
||||
|
||||
# Name of Service
|
||||
NAME="Minecraft Daemon"
|
||||
|
||||
# user used to run the daemon
|
||||
USERNAME=minecraft
|
||||
|
||||
PIDFILE=/var/run/minecraft.pid
|
||||
|
||||
func_stop() {
|
||||
[ -e \$PIDFILE ] && kill \$(cat \$PIDFILE) && rm \$PIDFILE
|
||||
}
|
||||
|
||||
func_start() {
|
||||
echo -n "Starting \$NAME ... "
|
||||
su - \$USERNAME -c /opt/$PRGNAM/start.sh &
|
||||
echo $! > \$PIDFILE
|
||||
}
|
||||
|
||||
|
||||
case \$1 in
|
||||
"start")
|
||||
func_start
|
||||
;;
|
||||
|
||||
"stop")
|
||||
func_stop
|
||||
;;
|
||||
|
||||
"restart")
|
||||
func_stop
|
||||
sleep 2
|
||||
func_start
|
||||
;;
|
||||
*)
|
||||
echo "Usage; start|stop|restart"
|
||||
;;
|
||||
esac
|
||||
EOF
|
||||
chmod +x $PKG/etc/rc.d/rc.$PRGNAM
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
#!/bin/sh
|
||||
[ ! -e /opt/$PRGNAM/eula.txt ] && /etc/rc.d/rc.$PRGNAM start
|
||||
EOF
|
||||
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
|-----handy-ruler--------------------------------------------------------|
|
||||
$PRGNAM: $PRGNAM (Proprietary Minecraft Server)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://www.minecraft.net/en-us/download/server/
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$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
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal true
|
||||
require "json"
|
||||
require "thwait"
|
||||
require "thwait" # gem install e2mmap thwait
|
||||
|
||||
NC_ROOT = "/srv/www/vhosts/nextcloud-server/htdocs".freeze
|
||||
NB_THREADS = 2
|
||||
|
|
98
xap/coolreader/SlackBuild
Executable file
98
xap/coolreader/SlackBuild
Executable file
|
@ -0,0 +1,98 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
|
||||
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
[ ! -e $REPOSITORY ] && git clone https://github.com/buggins/coolreader.git $REPOSITORY
|
||||
( cd $REPOSITORY && git pull )
|
||||
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
|
||||
cp -R $REPOSITORY $TMP/
|
||||
cd $TMP/$PRGNAM
|
||||
|
||||
# Fix upstream typo
|
||||
sed -i 's,documetn,document,g' cr3qt/src/*.ui cr3qt/src/i18n/*.ts || exit 1
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-D CMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-D CMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D LIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D MAX_IMAGE_SCALE_MUL=2 \
|
||||
-D DOC_DATA_COMPRESSION_LEVEL=3 \
|
||||
-D DOC_BUFFER_SIZE=0x1400000 \
|
||||
-D GUI=QT5 ..
|
||||
make VERBOSE=1
|
||||
make install DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
strip $PKG/usr/bin/$ORIG_PRGNAM
|
||||
|
||||
mkdir -p $PKG/usr/man
|
||||
mv $PKG/usr/share/man/* $PKG/usr/man
|
||||
rm -rf $PKG/usr/share/man
|
||||
|
||||
sed -i '/Icon/s|\.png||' $PKG/usr/share/applications/$ORIG_PRGNAM.desktop
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mv $PKG/usr/share/doc/$ORIG_PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
rm -rf $PKG/usr/share/doc
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG$PREFIX/man -type f -not -name \*.gz -exec gzip -9 {} \;
|
||||
|
||||
# embaumement
|
||||
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 ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
coolreader: coolreader (e-book reader)
|
||||
coolreader:
|
||||
coolreader: CoolReader is an e-book reader for various platforms.
|
||||
coolreader:
|
||||
coolreader: Supported file formats include plain text, HTML, RTF, Microsoft Word
|
||||
coolreader: (.doc), Palm Pilot (.prc, .pdb, .pml, .mobi), FB2, and EPUB.
|
||||
coolreader:
|
||||
coolreader:
|
||||
coolreader:
|
||||
coolreader: https://github.com/buggins/coolreader
|
||||
coolreader:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -3,7 +3,7 @@
|
|||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-2.1.9618}
|
||||
VERSION=${VERSION:-2.1.11314}
|
||||
ARCH=$(uname -m)
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-cyco}
|
||||
|
|
Loading…
Reference in a new issue