aboutsummaryrefslogtreecommitdiff
path: root/libraries/libearth/libearth.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libearth/libearth.SlackBuild')
-rw-r--r--libraries/libearth/libearth.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/libraries/libearth/libearth.SlackBuild b/libraries/libearth/libearth.SlackBuild
index c5bedcaa8c66f..da8bf5c1e4ed1 100644
--- a/libraries/libearth/libearth.SlackBuild
+++ b/libraries/libearth/libearth.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libearth
-VERSION=${VERSION:-0.1.1}
+VERSION=${VERSION:-0.1.2}
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 $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install