Merge branch 'master' of github.com:gwenhael-le-moine/slackbuilds

This commit is contained in:
Gwenhael Le Moine 2019-06-17 09:15:55 +02:00
commit 94806aff1d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 231 additions and 14 deletions

71
l/ldoc/SlackBuild Executable file
View file

@ -0,0 +1,71 @@
#!/bin/sh
CWD=$(pwd)
# default settings
PRGNAM=$(basename $CWD)
ARCH=$(uname -m)
VERSION=${VERSION:-$(date +%Y.%m.%d_%H.%M)}
BUILD=1
TAG=cyco
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO"
rm -rf $PKG $TMP/$PRGNAM
mkdir -p $PKG
cd $TMP
if [ -e $CWD/$PRGNAM-$VERSION.tar.xz ] ; then
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
else
[ ! -e $REPOSITORY ] && git clone https://github.com/stevedonovan/ldoc.git $REPOSITORY
( cd $REPOSITORY && git pull )
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
cp -R $REPOSITORY $PRGNAM
fi
cd $PRGNAM
mkdir -p $PKG/usr/bin/
make install DESTDIR=$PKG
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
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
mkdir -p install
cat << EOF > 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 (A LuaDoc-compatible documentation generation system)
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://stevedonovan.github.com/ldoc/
$PRGNAM:
EOF
chown -R root:root $PKG
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz

71
l/luafilesystem/SlackBuild Executable file
View file

@ -0,0 +1,71 @@
#!/bin/sh
CWD=$(pwd)
# default settings
PRGNAM=$(basename $CWD)
ARCH=$(uname -m)
VERSION=${VERSION:-$(date +%Y.%m.%d_%H.%M)}
BUILD=1
TAG=cyco
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO"
rm -rf $PKG $TMP/$PRGNAM
mkdir -p $PKG
cd $TMP
if [ -e $CWD/$PRGNAM-$VERSION.tar.xz ] ; then
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
else
[ ! -e $REPOSITORY ] && git clone https://github.com/keplerproject/luafilesystem.git $REPOSITORY
( cd $REPOSITORY && git pull )
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
cp -R $REPOSITORY $PRGNAM
fi
cd $PRGNAM
mkdir -p $PKG/usr/share/lua/5.1/
cp -R lua/pl $PKG/usr/share/lua/5.1/
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
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
mkdir -p install
cat << EOF > 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 (Lua libs)
$PRGNAM:
$PRGNAM: A set of pure Lua libraries focusing on input data handling (such as
$PRGNAM: reading configuration files), functional programming (such as map,
$PRGNAM: reduce, placeholder expressions,etc), and OS path management. Much of
$PRGNAM: the functionality is inspired by the Python standard libraries.
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://stevedonovan.github.com/Penlight/
$PRGNAM:
EOF
chown -R root:root $PKG
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz

71
l/penlight/SlackBuild Executable file
View file

@ -0,0 +1,71 @@
#!/bin/sh
CWD=$(pwd)
# default settings
PRGNAM=$(basename $CWD)
ARCH=$(uname -m)
VERSION=${VERSION:-$(date +%Y.%m.%d_%H.%M)}
BUILD=1
TAG=cyco
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO"
rm -rf $PKG $TMP/$PRGNAM
mkdir -p $PKG
cd $TMP
if [ -e $CWD/$PRGNAM-$VERSION.tar.xz ] ; then
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
else
[ ! -e $REPOSITORY ] && git clone https://github.com/stevedonovan/Penlight.git $REPOSITORY
( cd $REPOSITORY && git pull )
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
cp -R $REPOSITORY $PRGNAM
fi
cd $PRGNAM
mkdir -p $PKG/usr/share/lua/5.1/
cp -R lua/pl $PKG/usr/share/lua/5.1/
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
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
mkdir -p install
cat << EOF > 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 (Lua libs)
$PRGNAM:
$PRGNAM: A set of pure Lua libraries focusing on input data handling (such as
$PRGNAM: reading configuration files), functional programming (such as map,
$PRGNAM: reduce, placeholder expressions,etc), and OS path management. Much of
$PRGNAM: the functionality is inspired by the Python standard libraries.
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://stevedonovan.github.com/Penlight/
$PRGNAM:
EOF
chown -R root:root $PKG
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz

View file

@ -59,7 +59,6 @@ cmake \
-DAWESOME_MAN_PATH=$PREFIX/man \
$SRC_PATH
# compilation
make -j3
@ -69,18 +68,23 @@ mkdir -p $PKG/etc/X11/xinit/
cp $CWD/xinitrc.$PRGNAM $PKG/etc/X11/xinit/
chmod +x $PKG/etc/X11/xinit/xinitrc.$PRGNAM
### obvious
git_clone_or_pull https://github.com/hoelzro/obvious.git obvious
cp -R $REPOSITORIES/obvious $PKG$PREFIX/share/awesome/lib/
( cd $PKG$PREFIX/share/awesome/lib/obvious
rm -fr .git
make
)
# ### obvious
# git_clone_or_pull https://github.com/hoelzro/obvious.git obvious
# cp -R $REPOSITORIES/obvious $PKG$PREFIX/share/awesome/lib/
# ( cd $PKG$PREFIX/share/awesome/lib/obvious
# rm -fr .git
# make
# )
### vicious
git_clone_or_pull https://github.com/Mic92/vicious.git vicious
cp -R $REPOSITORIES/vicious $PKG$PREFIX/share/awesome/lib/
rm -fr $PKG$PREFIX/share/awesome/lib/vicious/.git
# ### vicious
# git_clone_or_pull https://github.com/Mic92/vicious.git vicious
# cp -R $REPOSITORIES/vicious $PKG$PREFIX/share/awesome/lib/
# rm -fr $PKG$PREFIX/share/awesome/lib/vicious/.git
# ### copycats
# git_clone_or_pull https://github.com/lcpz/awesome-copycats.git copycats
# cp -R $REPOSITORIES/copycats $PKG$PREFIX/share/awesome/lib/
# rm -fr $PKG$PREFIX/share/awesome/lib/copycats/.git
# correction
cd $PKG
@ -104,9 +108,9 @@ $PRGNAM: $PRGNAM is an extremely fast, small, and dynamic window manager for X.
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: # luarocks install luafilesystem penlight ldoc busted luacheck luacov
$PRGNAM:
$PRGNAM:
$PRGNAM: http://$PRGNAM.naquadah.org
$PRGNAM: https://awesomewm.org/
$PRGNAM: see /usr/doc/$PRGNAM-$VERSION for more details
$PRGNAM:
EOF