diff options
author | B. Watson <urchlay@slackware.uk> | 2023-08-31 03:07:02 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-09-02 18:02:32 +0700 |
commit | aa08e7df1bbc5ab316a4a637f0c9a65e78c39a8c (patch) | |
tree | 6c34c1477194d5808ccd8c0ca88c937c1524ea58 /office/lowdown/lowdown.SlackBuild | |
parent | a4788fc3b0486836011afafb8b4f83225653ab06 (diff) |
office/lowdown: Install shared library (required by nix).
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/lowdown/lowdown.SlackBuild')
-rw-r--r-- | office/lowdown/lowdown.SlackBuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/office/lowdown/lowdown.SlackBuild b/office/lowdown/lowdown.SlackBuild index 0cec5d0642da7..22c8a1fa714cc 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 |