From 54828a73482f5541c687f69aa0c2d133bade2f85 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 3 Sep 2018 12:39:25 +0200 Subject: [PATCH 1/2] =?UTF-8?q?m=C3=A9nage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ap/ripgrep/SlackBuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ap/ripgrep/SlackBuild b/ap/ripgrep/SlackBuild index dfa15660..d4305a28 100755 --- a/ap/ripgrep/SlackBuild +++ b/ap/ripgrep/SlackBuild @@ -18,7 +18,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM} PREFIX=${PREFIX:-/usr} # nettoyage préalable -rm -fr $PKG $TMP/$PRGNAM-$VERSION +rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG From 6ecdf8edc8a4df645d487819f15f3e8df97ed39b Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 3 Sep 2018 15:34:06 +0200 Subject: [PATCH 2/2] add esptool Signed-off-by: Gwenhael Le Moine --- ap/esptool/SlackBuild | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 ap/esptool/SlackBuild diff --git a/ap/esptool/SlackBuild b/ap/esptool/SlackBuild new file mode 100755 index 00000000..7abef1ab --- /dev/null +++ b/ap/esptool/SlackBuild @@ -0,0 +1,54 @@ + #!/bin/sh + +CWD=$(pwd) +PRGNAM=$(basename $CWD) +VERSION=$(date +%F | tr - .) +BUILD=1 + +ARCH=noarch + +HOME=/home/cycojesus +TAG=cyco +OUTPUT=/tmp +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM +PREFIX=/usr + +rm -fr $PKG $TMP/$PRGNAM +mkdir -p $TMP + +# mise en place +[ ! -e $REPOSITORY ] && git clone https://github.com/espressif/esptool.git $REPOSITORY +( cd $REPOSITORY && git pull ) +VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" + +cp -R $REPOSITORY $TMP/$PRGNAM + +cd $TMP/$PRGNAM + +python setup.py install --root $PKG + +python3 setup.py install --root $PKG + +VERSION=$(ls /usr/lib$(uname -m | grep -o 64)/python*/site-packages/| grep "$PRGNAM-.*-py.*\.egg-info" | grep -o "[0-9.]*" | head -n1)_$VERSION + +mkdir -p $PKG/install +cat < $PKG/install/slack-desc + |-----handy-ruler------------------------------------------------------| +$PRGNAM: $PRGNAM (ESP8266 and ESP32 serial bootloader utility) +$PRGNAM: +$PRGNAM: A Python-based, open source, platform independent, utility to +$PRGNAM: communicate with the ROM bootloader in Espressif ESP8266 & ESP32 +$PRGNAM: chips. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/espressif/esptool +EOF + +cd $PKG +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - .)-$ARCH-$BUILD$TAG.txz