Browse Source

l/sabyenc: Upgraded to sabyenc-3.3.6.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
6773cbfdde
  1. 2
      l/sabyenc/checksums
  2. 1
      l/sabyenc/sabyenc-3.3.2.tar.gz.sha256
  3. 36
      l/sabyenc/sabyenc.SlackBuild

2
l/sabyenc/checksums

@ -0,0 +1,2 @@
a4cacd0332577c52a4e416c18509ddf2bc9ea7f89637ac6d67b51a6142ac7ee1 sabyenc-3.3.6.tar.gz
74249291e6c5623b8b881cb175990c95d928c9d8d0346aa1cf85018d079869fc sabyenc3-4.0.1.tar.gz

1
l/sabyenc/sabyenc-3.3.2.tar.gz.sha256

@ -1 +0,0 @@
b2ce38affad7f484d2597ea16d1242be56b5140d7f43cd1ac8914cfd335aef80 sabyenc-3.3.2.tar.gz

36
l/sabyenc/sabyenc.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2017 Damien Goutte-Gattat
# Copyright (C) 2017,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,8 +26,10 @@
# Source package infos
NAMESRC=${NAMESRC:-sabyenc}
VERSION=${VERSION:-3.3.2}
VERSION=${VERSION:-3.3.6}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
VERSION3=${VERSION3:-4.0.1}
ARCHIVE3=${ARCHIVE3:-${NAMESRC}3-$VERSION3.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-sabyenc}
@ -56,27 +58,37 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
pip download --no-binary :all: $NAMESRC==$VERSION
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
if [ ! -r $ARCHIVE3 ]; then
pip3 download --no-binary :all: --no-deps ${NAMESRC}3==$VERSION3
fi
sha256sum -c checksums
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
NAME3=$(tar ft $ARCHIVE3 | head -n 1 | cut -d / -f 1)
# Compile
# Compile the Python 2 version
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
install -D -m 644 README.md $PKG/usr/doc/$NAME/README.md
# And now the Python 3 version
cd $TMP
echo "Building $ARCHIVE3"
tar xf $CWD/$ARCHIVE3
cd $NAME3
python3 setup.py build
python3 setup.py install --root=$PKG
install -m 544 README.md $PKG/usr/doc/$NAME/README.$NAME3.md
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 PKG-INFO README.md $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -87,7 +99,7 @@ PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
rm -rf $TMP/$NAME $TMP/$NAME3
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot

Loading…
Cancel
Save