[Slackbuilds-users] imlib2 notice

Konrad J Hambrick kjhambrick at gmail.com
Sun Jan 1 14:21:47 UTC 2023


On Sat, Dec 31, 2022 at 9:03 PM Willy Sudiarto Raharjo <
willysr at slackbuilds.org> wrote:

> Hi all
>
> i'm planning to bump imlib2 from 1.7.4 to 1.10.0
> there are 26 other scripts that depends on imlib2, so please test with
> the new imlib2 which i have pushed on separate branch:
> https://git.slackbuilds.org/slackbuilds/log/?h=imlib2-review
>
> if everything checks out, i will merge it on this week's public update
>

Willy --

I was able to build imlib2 1.10.0 both before and after I installed libjxl

One suggestion ... Does it make sense to maybe add an optional configure
flag:  --enable-doc-build ?

When --enable-doc-build is passed to configure, Doxygen creates nice
documentation in doc/html/ and also man/man3/ files ( not so useful ).

Thanks for all you do and Happy New Year !

-- kjh

This is my q&d test to include docs.

# diff -Naur a/imlib2.SlackBuild b/imlib2.SlackBuild
--- a/imlib2.SlackBuild   2023-01-01 06:26:02.050564904 -0600
+++ b/imlib2.SlackBuild   2023-01-01 08:07:39.278227647 -0600
@@ -78,6 +78,13 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

+if [ "$DO_DOCS" = "YES" ]; then
+   MAKE_DOCS="--enable-doc-build"
+   DOCS="$DOCS doc/html"
+else
+   MAKE_DOCS=""
+fi
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
@@ -86,6 +93,7 @@
   --sysconfdir=/etc \
   --localstatedir=/var \
   --docdir=/usr/doc/$PRGNAM-$VERSION \
+    $MAKE_DOCS \
   --disable-static \
   --build=$ARCH-slackware-linux

@@ -102,6 +110,11 @@
 cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild >
$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

+if [ "$DO_DOCS" = "YES" ]; then
+   cp -va doc/man $PKG/usr/
+   find $PKG/usr/man -type f -print -exec gzip {} \;
+fi
+
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20230101/a8fd470e/attachment.htm>


More information about the SlackBuilds-users mailing list