mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
python/pyliblo: Add python3 support.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
9a84afbc92
commit
32c714630e
3 changed files with 17 additions and 23 deletions
|
@ -1,11 +1,9 @@
|
|||
pyliblo (python wrapper for the liblo OSC library)
|
||||
|
||||
pyliblo is a Python wrapper for the liblo Open Sound Control library. It
|
||||
supports almost the complete functionality of liblo, allowing you to
|
||||
send and receive OSC messages using a nice and simple Python API.
|
||||
pyliblo is a Python wrapper for the liblo Open Sound Control
|
||||
library. It supports almost the complete functionality of liblo,
|
||||
allowing you to send and receive OSC messages using a nice and simple
|
||||
Python API.
|
||||
|
||||
Also included are the command line utilities send_osc and dump_osc.
|
||||
|
||||
If you're upgrading from an older pyliblo version and you get 'compilation
|
||||
terminated due to -Wfatal-errors', check your installed version of liblo:
|
||||
for pyliblo-0.10.0 and up, you need liblo-0.28 or greater.
|
||||
This build includes support for both Python 2 and Python 3. Also
|
||||
included are the command line utilities send_osc and dump_osc.
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
# 20211202 bkw: BUILD=2, add python3 support.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=pyliblo
|
||||
VERSION=${VERSION:-0.10.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -22,9 +24,6 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
|
@ -57,21 +56,18 @@ rm -rf $PRGNAM-$VERSION
|
|||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
||||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
python3 setup.py install --root=$PKG
|
||||
|
||||
find $PKG/usr/lib* -name '*.so' -exec strip {} \+
|
||||
|
||||
mv $PKG/usr/share/man $PKG/usr/man
|
||||
rmdir $PKG/usr/share
|
||||
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
|
||||
gzip -9 $PKG/usr/man/man?/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COPYING NEWS PKG-INFO README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
|
@ -13,7 +13,7 @@ pyliblo: library. It supports almost the complete functionality of liblo,
|
|||
pyliblo: allowing you to send and receive OSC messages using a nice and simple
|
||||
pyliblo: Python API.
|
||||
pyliblo:
|
||||
pyliblo: Also included are the command line utilities send_osc and dump_osc.
|
||||
pyliblo:
|
||||
pyliblo: This build includes support for both Python 2 and Python 3. Also
|
||||
pyliblo: included are the command line utilities send_osc and dump_osc.
|
||||
pyliblo:
|
||||
pyliblo:
|
||||
|
|
Loading…
Reference in a new issue