wok-current rev 25738 tip

Update get-LibreOffice for current64, add libavahi for LibreOffice draw
author Stanislas Leduc <shann@slitaz.org>
date Wed Jan 29 10:54:12 2025 +0000 (25 hours ago)
parents bd7480b858ea
children
files get-LibreOffice/receipt get-LibreOffice/stuff/get-LibreOffice libavahi/receipt libavahi/stuff/libavahi-client.c libavahi/stuff/libavahi-common.c
line diff
     1.1 --- a/get-LibreOffice/receipt	Tue Jan 28 15:25:33 2025 +0000
     1.2 +++ b/get-LibreOffice/receipt	Wed Jan 29 10:54:12 2025 +0000
     1.3 @@ -10,6 +10,8 @@
     1.4  WEB_SITE="https://www.documentfoundation.org"
     1.5  PROVIDE="get-libreoffice get-libre-office get-Libre-Office"
     1.6  
     1.7 +HOST_ARCH="i486 x86_64"
     1.8 +
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
    1.11  {
     2.1 --- a/get-LibreOffice/stuff/get-LibreOffice	Tue Jan 28 15:25:33 2025 +0000
     2.2 +++ b/get-LibreOffice/stuff/get-LibreOffice	Wed Jan 29 10:54:12 2025 +0000
     2.3 @@ -36,8 +36,8 @@
     2.4  
     2.5  PREFIX="http://download.documentfoundation.org/libreoffice/$DIR"
     2.6  
     2.7 -DEPENDS="cups libkrb5 libcomerr3 nss"
     2.8 -EXCLUDE="kde|gnome|test"
     2.9 +DEPENDS="cups libkrb5 libcomerr3 nss gtk+3 libavahi librsvg"
    2.10 +EXCLUDE="kde|test" # keep gnome for gtk3 ui
    2.11  
    2.12  # Declare functions check_root, status, ...
    2.13  . /lib/libtaz.sh
    2.14 @@ -267,6 +267,10 @@
    2.15  bin=$PACKAGE-$VERSION/fs/usr/bin/libreoffice${VERSION:0:4}
    2.16  ln -sf /usr/lib/libreoffice/libreoffice${VERSION:0:4}/program soffice $bin
    2.17  
    2.18 +# Add PYTHONHOME in soffice
    2.19 +sed -i "/# restore locale /i export PYTHONHOME=\"/usr/lib/libreoffice/libreoffice${VERSION:0:4}/program/python-core-3.9.21\"\n" \
    2.20 +$PACKAGE-$VERSION/fs/usr/lib/libreoffice${VERSION:0:4}/program/soffice
    2.21 +
    2.22  # Create recipe for SliTaz package
    2.23  cat > $PACKAGE-$VERSION/receipt <<EOT
    2.24  # SliTaz package receipt.
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/libavahi/receipt	Wed Jan 29 10:54:12 2025 +0000
     3.3 @@ -0,0 +1,30 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="libavahi"
     3.7 +VERSION="1.0"
     3.8 +CATEGORY="network"
     3.9 +SHORT_DESC="libavahi hack for LibreOffice."
    3.10 +MAINTAINER="maintainer@slitaz.org"
    3.11 +LICENSE="GPL"
    3.12 +WEB_SITE="https://communitytest.documentfoundation.org/t/libsdlo-so-slitaz-gnu-linux-avahi/58304/4"
    3.13 +
    3.14 +HOST_ARCH="i486 x86_64"
    3.15 +
    3.16 +# Rules to configure and make the package.
    3.17 +compile_rules()
    3.18 +{
    3.19 +	# Create and copy libavahi to src dir
    3.20 +	mkdir -p $src && cd $src
    3.21 +	cp $stuff/*.c $src
    3.22 +	
    3.23 +	gcc -c libavahi-client.c libavahi-common.c
    3.24 +	gcc -shared -o libavahi-client.so.3 libavahi-client.o
    3.25 +	gcc -shared -o libavahi-common.so.3 libavahi-common.o
    3.26 +}
    3.27 +
    3.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.29 +genpkg_rules()
    3.30 +{
    3.31 +	mkdir -p $fs/usr/lib
    3.32 +	cp -a $src/*.so*	$fs/usr/lib
    3.33 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/libavahi/stuff/libavahi-client.c	Wed Jan 29 10:54:12 2025 +0000
     4.3 @@ -0,0 +1,1 @@
     4.4 +int avahi_client_new(void) { return 0; }
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/libavahi/stuff/libavahi-common.c	Wed Jan 29 10:54:12 2025 +0000
     5.3 @@ -0,0 +1,1 @@
     5.4 +int avahi_threaded_poll_new(void) { return 0; }