summaryrefslogtreecommitdiff
path: root/libraries/enum34/enum34.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-02-07 13:52:51 +0700
committerErik Hanson <erik@slackbuilds.org>2014-02-08 11:10:12 -0600
commitd553a717252a1c0407c637165d2c7c18572b1f64 (patch)
tree8093a0b821105b0b1dae1e479d9a1ffa49d14e95 /libraries/enum34/enum34.SlackBuild
parent255a48f92f5d15b6c002e7555a49c013db4a901f (diff)
downloadslackbuilds-d553a717252a1c0407c637165d2c7c18572b1f64.tar.gz
libraries/enum34: Updated for version 0.9.21.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/enum34/enum34.SlackBuild')
-rw-r--r--libraries/enum34/enum34.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/libraries/enum34/enum34.SlackBuild b/libraries/enum34/enum34.SlackBuild
index db564908f2..5c3bad3c75 100644
--- a/libraries/enum34/enum34.SlackBuild
+++ b/libraries/enum34/enum34.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=enum34
-VERSION=${VERSION:-0.9.20}
+VERSION=${VERSION:-0.9.21}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,11 +71,15 @@ find -L . \
python setup.py install --root=$PKG
+if $(python3 -c 'import sys' 2>/dev/null); then
+ python3 setup.py install --root=$PKG
+fi
+
find $PKG -print0 | xargs -0 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 PKG-INFO enum/doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a PKG-INFO enum/LICENSE enum/README enum/doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install