Browse Source

l/pmw: Upgraded to pmw-2.0.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
7e22a4b0cb
  1. 1
      l/pmw/Pmw-2.0.1.tar.gz.sha256
  2. 1
      l/pmw/Pmw.1.3.3.tar.gz.sha1
  3. 20
      l/pmw/pmw.SlackBuild

1
l/pmw/Pmw-2.0.1.tar.gz.sha256

@ -0,0 +1 @@
0b9d28f52755a7a081b44591c3dd912054f896e56c9a627db4dd228306ad1120 Pmw-2.0.1.tar.gz

1
l/pmw/Pmw.1.3.3.tar.gz.sha1

@ -1 +0,0 @@
0ff7f03245640da4f37a97167967de8d09e4c6a6 Pmw.1.3.3.tar.gz

20
l/pmw/pmw.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009,2011,2012 Damien Goutte-Gattat
# Copyright (C) 2008,2009,2011,2012,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,9 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-Pmw}
VERSION=${VERSION:-1.3.3}
ARCHIVE=${ARCHIVE:-$NAMESRC.$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/pmw/$ARCHIVE}
VERSION=${VERSION:-2.0.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
# Built package infos
NAMEPKG=${NAMEPKG:-pmw}
@ -57,19 +56,20 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 2)
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Build
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save