summaryrefslogtreecommitdiffstats
path: root/python/pyserial
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyserial')
-rw-r--r--python/pyserial/pyserial.SlackBuild18
-rw-r--r--python/pyserial/pyserial.info8
2 files changed, 18 insertions, 8 deletions
diff --git a/python/pyserial/pyserial.SlackBuild b/python/pyserial/pyserial.SlackBuild
index e2d01887c2..067c10ba37 100644
--- a/python/pyserial/pyserial.SlackBuild
+++ b/python/pyserial/pyserial.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for pyserial
@@ -24,10 +24,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=pyserial
-VERSION=${VERSION:-3.4}
+VERSION=${VERSION:-3.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,7 +40,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -85,4 +95,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/python/pyserial/pyserial.info b/python/pyserial/pyserial.info
index c9abc630a2..afe93a7a56 100644
--- a/python/pyserial/pyserial.info
+++ b/python/pyserial/pyserial.info
@@ -1,10 +1,10 @@
PRGNAM="pyserial"
-VERSION="3.4"
+VERSION="3.5"
HOMEPAGE="https://github.com/pyserial/pyserial"
-DOWNLOAD="https://github.com/pyserial/pyserial/archive/v3.4/pyserial-3.4.tar.gz"
-MD5SUM="fc00727ed9cf3a31b7a296a4d42f6afc"
+DOWNLOAD="https://github.com/pyserial/pyserial/archive/v3.5/pyserial-3.5.tar.gz"
+MD5SUM="ce1cf20f1bbf608027b14d4a97a377fc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3"
+REQUIRES=""
MAINTAINER="Cristiano Urban"
EMAIL="cristiano.urban.slack@gmail.com"