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.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/office/lowdown/lowdown.SlackBuild b/office/lowdown/lowdown.SlackBuild
index 0cec5d0642..22c8a1fa71 100644
--- a/office/lowdown/lowdown.SlackBuild
+++ b/office/lowdown/lowdown.SlackBuild
@@ -23,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.11.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,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
@@ -76,9 +78,9 @@ 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" \
@@ -87,7 +89,9 @@ CXXFLAGS="$SLKCFLAGS" \
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