summaryrefslogtreecommitdiff
path: root/python/pychm
diff options
context:
space:
mode:
authorOzan Türkyılmaz <ozan.turkyilmaz@gmail.com>2020-12-04 22:24:48 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-12-06 07:59:48 +0700
commitfe5b72d89488bc6d1ace13047741784ecbc6912f (patch)
treef7d277380977e4c1b3f954d60002ba5ccfa9ab5c /python/pychm
parente48a7b458f17e06958e4a514aa5780d76d7a048c (diff)
downloadslackbuilds-fe5b72d89488bc6d1ace13047741784ecbc6912f.tar.gz
python/pychm: Updated for version 0.8.6.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pychm')
-rw-r--r--python/pychm/README8
-rw-r--r--python/pychm/pychm.SlackBuild16
-rw-r--r--python/pychm/pychm.info8
3 files changed, 21 insertions, 11 deletions
diff --git a/python/pychm/README b/python/pychm/README
index 6a4e251f36..e38bcb505d 100644
--- a/python/pychm/README
+++ b/python/pychm/README
@@ -1,4 +1,6 @@
PyCHM is a package that provides bindings for Jed Wing's CHMLIB
-library. The chm package contains four modules, namely chm.chm,
-chm.chmlib, chm.extra and chm._chmlib. chm.chmlib is a low level
-wrapper module around the API provided by the C library chmlib.
+library. The chm package contains four modules, namely chm.chm,
+chm.chmlib, chm.extra and chm._chmlib. chm.chmlib is a low level
+wrapper module around the API provided by the C library chmlib.
+The build script will build Python3 modules automatically if you
+have Python3 installed.
diff --git a/python/pychm/pychm.SlackBuild b/python/pychm/pychm.SlackBuild
index cea6426868..09eb77fa6f 100644
--- a/python/pychm/pychm.SlackBuild
+++ b/python/pychm/pychm.SlackBuild
@@ -26,7 +26,7 @@
# THE SOFTWARE.
PRGNAM=pychm
-VERSION=${VERSION:-0.8.4}
+VERSION=${VERSION:-0.8.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -58,14 +58,22 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-python setup.py build
-python setup.py install --root $PKG
+if [ -x /usr/bin/python2 ]
+then
+ python2 setup.py install --root $PKG
+fi
+
+if [ -x /usr/bin/python3 ]
+then
+ python3 setup.py install --root $PKG
+fi
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING ChangeLog NEWS PKG-INFO README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING HACKING LICENSE NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/pychm/pychm.info b/python/pychm/pychm.info
index 4ba76b3b30..1734b9f485 100644
--- a/python/pychm/pychm.info
+++ b/python/pychm/pychm.info
@@ -1,8 +1,8 @@
PRGNAM="pychm"
-VERSION="0.8.4"
-HOMEPAGE="http://gnochm.sourceforge.net/pychm.html"
-DOWNLOAD="http://downloads.sourceforge.net/gnochm/pychm-0.8.4.tar.gz"
-MD5SUM="ff7f0baf94290c44263a1618e7e6a116"
+VERSION="0.8.6"
+HOMEPAGE="https://github.com/dottedmag/pychm/"
+DOWNLOAD="https://github.com/dottedmag/pychm/archive/v0.8.6/pychm-0.8.6.tar.gz"
+MD5SUM="31f1e83b115e687ef5c38c45bf89dbd1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""