Browse Source

l/sabyenc: Upgraded to sabyenc-4.0.2.

current-20200608
parent
commit
85bb17023d
  1. 2
      l/sabyenc/checksums
  2. 31
      l/sabyenc/sabyenc.SlackBuild
  3. 1
      l/sabyenc/sabyenc3-4.0.2.tar.gz.sha256

2
l/sabyenc/checksums

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

31
l/sabyenc/sabyenc.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2017,2019 Damien Goutte-Gattat
# Copyright (C) 2017,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -22,14 +22,12 @@
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest sabyenc sourcecode is available at: <https://sabnzbd.org/>?
# Latest sabyenc sourcecode is available at: <https://sabnzbd.org/>.
# Source package infos
NAMESRC=${NAMESRC:-sabyenc}
VERSION=${VERSION:-3.3.6}
NAMESRC=${NAMESRC:-sabyenc3}
VERSION=${VERSION:-4.0.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
VERSION3=${VERSION3:-4.0.1}
ARCHIVE3=${ARCHIVE3:-${NAMESRC}3-$VERSION3.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-sabyenc}
@ -60,30 +58,17 @@ fi
if [ ! -r $ARCHIVE ]; then
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
if [ ! -r $ARCHIVE3 ]; then
pip3 download --no-binary :all: --no-deps ${NAMESRC}3==$VERSION3
fi
sha256sum -c checksums
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
NAME3=$(tar ft $ARCHIVE3 | head -n 1 | cut -d / -f 1)
# Compile the Python 2 version
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
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
install -D -m 644 README.md $PKG/usr/doc/$NAME/README.md
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
@ -99,7 +84,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 $TMP/$NAME3
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot

1
l/sabyenc/sabyenc3-4.0.2.tar.gz.sha256

@ -0,0 +1 @@
dfaa0bdd01752a9cfde0d349a8f4e178b04b1cf9c1bc018b287961192cd2bb90 sabyenc3-4.0.2.tar.gz
Loading…
Cancel
Save