summaryrefslogtreecommitdiffstats
path: root/libraries/libpst/libpst.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libpst/libpst.SlackBuild')
-rw-r--r--libraries/libpst/libpst.SlackBuild23
1 files changed, 15 insertions, 8 deletions
diff --git a/libraries/libpst/libpst.SlackBuild b/libraries/libpst/libpst.SlackBuild
index 25a408885a..1fa5bfa36c 100644
--- a/libraries/libpst/libpst.SlackBuild
+++ b/libraries/libpst/libpst.SlackBuild
@@ -23,6 +23,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20180917 bkw: upgrade to 0.6.72
+
# 20170122 bkw:
# - upgrade to 0.6.69
@@ -41,7 +43,7 @@
# - make install-strip instead of slow find stuff
PRGNAM=libpst
-VERSION=${VERSION:-0.6.69}
+VERSION=${VERSION:-0.6.72}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -81,11 +83,17 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# 20180917 bkw: libpst supposedly supports python3 now, but python3
+# builds fail. Not tried to diagnose it, just reverting to python2,
+# like previous versions of libpst used.
+# ./configure --help claims that I can set PYTHON_VERSION in the environment
+# and it'll use that, but it doesn't work. So I have to use this abomination:
+sed -i 's,\<python3\..\>,,g' m4/ax_python.m4
+
+autoreconf -if
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -106,8 +114,7 @@ make install-strip DESTDIR=$PKG \
htmldir=/usr/doc/$PRGNAM-$VERSION \
htmldeveldir=/usr/doc/$PRGNAM-$VERSION/devel
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+gzip -9 $PKG/usr/man/man?/*.?
# Package documentation has aready been copied
# into $PKG/usr/doc/$PRGNAM-$VERSION by "make install"