summaryrefslogtreecommitdiffstats
path: root/office/lowdown/lowdown.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/lowdown/lowdown.SlackBuild')
-rw-r--r--office/lowdown/lowdown.SlackBuild28
1 files changed, 19 insertions, 9 deletions
diff --git a/office/lowdown/lowdown.SlackBuild b/office/lowdown/lowdown.SlackBuild
index 9644493714..22c8a1fa71 100644
--- a/office/lowdown/lowdown.SlackBuild
+++ b/office/lowdown/lowdown.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for lowdown
+# Copyright 2019-2022 Pouria Rezaei <Pouria.rz@outlook.com>
# Copyright 2020, Charles A. Daniels, United States
# All rights reserved.
#
@@ -22,11 +23,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230831 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - install the shared library, because lowdown's one dependee, nix,
+# requires it. these two builds have the same maintainer, who is not
+# responding to email.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lowdown
-VERSION=${VERSION:-0.5.4}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-0.11.2}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -75,17 +78,20 @@ 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 \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- PREFIX="/usr"
+ PREFIX=/usr \
+ LIBDIR=/usr/lib${LIBDIRSUFFIX}
make
-make install DESTDIR=$PKG
+make install install_shared DESTDIR=$PKG
+chmod 0755 $PKG/usr/lib$LIBDIRSUFFIX/liblowdown.so.1
+ln -s liblowdown.so.1 $PKG/usr/lib$LIBDIRSUFFIX/liblowdown.so
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
@@ -93,6 +99,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
+if [ "$ARCH" = "x86_64" ]; then
+ rm -fR $PKG/usr/lib
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE.md \