network/asciinema: Updated for version 2.2.0.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2022-12-03 20:20:35 +02:00 committed by Willy Sudiarto Raharjo
parent 6d92a3631c
commit cbe5f7cd8b
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 18 additions and 12 deletions

View file

@ -22,14 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220403 bkw: Modified by SlackBuilds.org, BUILD=2:
# - install docs to correct dir, /usr/doc/$PRGNAM-$VERSION
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=asciinema
VERSION=${VERSION:-2.1.0}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -71,6 +68,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cp $CWD/setup.py $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -79,15 +77,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# Fix manpage path
sed -i -e "s/share\/man/man/" setup.py
python3 setup.py install --root=$PKG
gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/man/man1
cp man/asciinema.1 $PKG/usr/man/man1
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
rm -rf $PKG/usr/share # nothing here but empty doc/ dir.
cp -a *.md PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,8 +1,8 @@
PRGNAM="asciinema"
VERSION="2.1.0"
VERSION="2.2.0"
HOMEPAGE="https://asciinema.org"
DOWNLOAD="https://files.pythonhosted.org/packages/2c/31/492da48c9d7d23cd26f16c8f459aeb443ff056258bed592b5ba28ed271ea/asciinema-2.1.0.tar.gz"
MD5SUM="7d4bad3fca5ba0d5c82b3057fd5f6a3c"
DOWNLOAD="https://files.pythonhosted.org/packages/26/40/20891ed2770311c22543499a011906858bb12450bf46bd6d763f39da0002/asciinema-2.2.0.tar.gz"
MD5SUM="b47535e5d02e5a212822a99abbf13e72"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -0,0 +1,5 @@
from setuptools import setup
if __name__ == '__main__':
setup()