diff options
Diffstat (limited to 'libraries/libxmlb/libxmlb.SlackBuild')
-rw-r--r-- | libraries/libxmlb/libxmlb.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/libraries/libxmlb/libxmlb.SlackBuild b/libraries/libxmlb/libxmlb.SlackBuild index b25bdedbe7..026fdc3ffb 100644 --- a/libraries/libxmlb/libxmlb.SlackBuild +++ b/libraries/libxmlb/libxmlb.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for libxmlb -# Copyright 2019-2021 Andrew Clemons, Wellington New Zealand +# Copyright 2019-2022 Andrew Clemons, Wellington New Zealand +# Copyright 2022-2024 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libxmlb -VERSION=${VERSION:-0.3.2} +VERSION=${VERSION:-0.3.15} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +39,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 @@ -82,17 +80,23 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ meson \ - --prefix=/usr \ + --buildtype=release \ + --infodir=/usr/info \ --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ --sysconfdir=/etc \ build -"${NINJA:=ninja}" -$NINJA -C build +"${NINJA:=ninja}" -C build DESTDIR=$PKG $NINJA -C build install 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 +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 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ CODE_OF_CONDUCT.md LICENSE MAINTAINERS NEWS README.md \ |