diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-21 14:27:30 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-21 14:27:30 -0400 |
commit | f605ac666d1b34bbfd475a7410761fff5ab0a782 (patch) | |
tree | 8034abb21fdc97e0251f4a706a11c48fb9614183 /libraries/ulfius | |
parent | a8356efb6d89221048551b7b1562cd702c2e617b (diff) |
libraries/ulfius: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/ulfius')
-rw-r--r-- | libraries/ulfius/ulfius.SlackBuild | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/libraries/ulfius/ulfius.SlackBuild b/libraries/ulfius/ulfius.SlackBuild index 90769178b743b..6772bed76678b 100644 --- a/libraries/ulfius/ulfius.SlackBuild +++ b/libraries/ulfius/ulfius.SlackBuild @@ -20,11 +20,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220421 bkw: Modified by SlackBuilds.org, BUILD=2: +# - remove empty/useless files from doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ulfius VERSION=${VERSION:-2.7.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -36,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 @@ -73,9 +73,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 {} \+ mkdir -p build cd build @@ -85,22 +85,19 @@ cd build -DCMAKE_INSTALL_DOCDIR=doc/$PRGNAM-$VERSION \ -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. -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 - mv $PKG/usr/share/man $PKG/usr rm -rf $PKG/usr/share +gzip -9 $PKG/usr/man/man*/* -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 +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION DOCS="CHANGELOG.md LICENSE README.md" -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +rm -f $PKGDOC/{INSTALL.md,example_programs/sheep_counter/static/README.md} +cp -a $DOCS $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |