mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-04 00:56:07 +01:00
python/pyusb: Updated for version 1.0.0.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
This commit is contained in:
parent
e4f1b8a198
commit
9aeb08acd1
4 changed files with 11 additions and 29 deletions
|
@ -1,3 +1,2 @@
|
||||||
PyUSB is a native Python module written in C which provides easy USB access
|
PyUSB is a native Python module which provides easy USB access to Python.
|
||||||
to Python. The module contains classes and methods to support most USB
|
The module contains classes and methods to support most USB operations.
|
||||||
operations.
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for PyUSB
|
# Slackware build script for PyUSB
|
||||||
|
|
||||||
# Copyright 2014 Kyle Guinn <elyk03@gmail.com>, USA
|
# Copyright 2014-2016 Kyle Guinn <elyk03@gmail.com>, USA
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=pyusb
|
PRGNAM=pyusb
|
||||||
VERSION=${VERSION:-0.4.3}
|
VERSION=${VERSION:-1.0.0}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -40,17 +40,7 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM-$VERSION
|
PKG=$TMP/package-$PRGNAM-$VERSION
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
DOCS="LICENSE README"
|
DOCS="ACKNOWLEDGEMENTS ChangeLog LICENSE README.rst docs/faq.rst docs/tutorial.rst"
|
||||||
|
|
||||||
if [ $ARCH = "i486" ]; then
|
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
|
||||||
elif [ $ARCH = "i686" ]; then
|
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
|
||||||
elif [ $ARCH = "x86_64" ]; then
|
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
|
||||||
else
|
|
||||||
SLKCFLAGS="-O2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -63,15 +53,8 @@ cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go-w,a+rX-st .
|
chmod -R u+w,go-w,a+rX-st .
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
|
||||||
python ./setup.py install --root=$PKG
|
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
|
|
||||||
|
|
||||||
# Normalize line endings
|
|
||||||
sed -i "s/\xd$//g" README
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="pyusb"
|
PRGNAM="pyusb"
|
||||||
VERSION="0.4.3"
|
VERSION="1.0.0"
|
||||||
HOMEPAGE="https://walac.github.io/pyusb/"
|
HOMEPAGE="https://walac.github.io/pyusb/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/pyusb/pyusb-0.4.3.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/pyusb/pyusb-1.0.0.tar.gz"
|
||||||
MD5SUM="a1a43bc6407caccbc22073c56439aa06"
|
MD5SUM="9b173ae33866a2fb4162e0164f01c284"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
pyusb: PyUSB (USB module for Python)
|
pyusb: PyUSB (USB module for Python)
|
||||||
pyusb:
|
pyusb:
|
||||||
pyusb: PyUSB is a native Python module written in C which provides easy USB
|
pyusb: PyUSB is a native Python module which provides easy USB access to
|
||||||
pyusb: access to Python. The module contains classes and methods to
|
pyusb: Python. The module contains classes and methods to support most USB
|
||||||
pyusb: support most USB operations.
|
pyusb: operations.
|
||||||
pyusb:
|
pyusb:
|
||||||
pyusb:
|
pyusb:
|
||||||
pyusb:
|
pyusb:
|
||||||
|
|
Loading…
Reference in a new issue