wok-current annotate slim/receipt @ rev 25734

Up rsync (CVE-2024-12084-88, CVE-2024-12747), xorg-server CVE-2024-9632, expat CVE-2024-50602, deps for webkit2gtk, up mesa 21.3.8, rework xorg proto, up get-LibreOffice/get-LibreOffice for x86_64
author Stanislas Leduc <shann@slitaz.org>
date Thu Jan 16 13:14:32 2025 +0000 (2 weeks ago)
parents 3ad63c8fc2f9
children
rev   line source
pankso@263 1 # SliTaz package receipt.
pankso@263 2
pankso@263 3 PACKAGE="slim"
Hans-G?nter@25310 4 VERSION="1.3.6"
pankso@263 5 CATEGORY="x-window"
Hans-G?nter@25310 6 SHORT_DESC="Desktop-independent graphical login manager for X11."
pankso@263 7 MAINTAINER="pankso@slitaz.org"
al@14601 8 LICENSE="GPL2"
Hans-G?nter@25366 9 WEB_SITE="https://www.berlios.de/software/slim/"
Hans-G?nter@25310 10 REPOLOGY="slim-login-manager"
Hans-G?nter@25310 11
pankso@263 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25366 13 WGET_URL="https://github.com/iwamatsu/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
pankso@263 14
Hans-G?nter@25310 15 RELATED="slim-pam slim-theme-default"
pankso@16103 16 SUGGESTED="slim-theme-default slitaz-configs"
al@14601 17 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
pankso@16103 18 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev"
pankso@16103 19
Hans-G?nter@25310 20 CONFIG_FILES="/etc/slim.conf"
Hans-G?nter@25310 21
Hans-G?nter@25310 22 COOKOPTS="!pngquant op8"
Hans-G?nter@25310 23
shann@25728 24 HOST_ARCH="i486 arm x86_64"
Hans-G?nter@25310 25
Hans-G?nter@25310 26 # @maintainer: Please update also slim-pam and slim-theme-default
Hans-G?nter@25310 27
pankso@16115 28 # Handle cross compilation
pankso@16103 29 case "$ARCH" in
shann@25728 30 (i?86|x86_64)
pankso@16114 31 BUILD_DEPENDS="$BUILD_DEPENDS cmake"
pankso@16114 32 INCL=/usr/include
Hans-G?nter@25310 33 LIBS=/usr/lib
Hans-G?nter@25310 34 ;;
Hans-G?nter@25310 35 (arm*)
pankso@16114 36 INCL=/cross/$ARCH/sysroot/usr/include
Hans-G?nter@25310 37 LIBS=/cross/$ARCH/sysroot/usr/lib
Hans-G?nter@25310 38 ;;
pankso@16103 39 esac
pankso@9737 40
pascal@24071 41 current_version()
pascal@24071 42 {
pascal@24299 43 wget -O - https://github.com/iwamatsu/slim/tags 2>/dev/null | \
pascal@24071 44 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24071 45 }
pascal@24071 46
pankso@263 47 # Rules to configure and make the package.
pankso@263 48 compile_rules()
pankso@263 49 {
Hans-G?nter@25310 50 patch --input=$stuff/patches/app.cpp-$VERSION || return 1
Hans-G?nter@25310 51 patch --input=$stuff/patches/cfg.cpp-$VERSION || return 1
Hans-G?nter@25310 52 patch --input=$stuff/patches/slim.conf-$VERSION || return 1
Hans-G?nter@25310 53
Hans-G?nter@25310 54 # do NOT build slimlock
Hans-G?nter@25310 55 sed -i -e '/install(TARGETS slimlock/d' CMakeLists.txt
Hans-G?nter@25310 56
Hans-G?nter@25310 57 mkdir _build &&
Hans-G?nter@25310 58 cd _build &&
Hans-G?nter@25310 59 cmake .. \
Hans-G?nter@25310 60 -D CMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@25310 61 -D X11_Xmu_LIB="$LIBS/libXmu.so" \
Hans-G?nter@25310 62 -D X11_Xft_INCLUDE_PATH=${INCL} \
shann@25634 63 -D X11_Xmu_INCLUDE_PATH=${INCL} \
shann@25634 64 -Wno-dev &&
al@14601 65 make &&
Hans-G?nter@25310 66 make install DESTDIR=$DESTDIR
pankso@263 67 }
pankso@263 68
pankso@263 69 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@263 70 genpkg_rules()
pankso@263 71 {
rcx@6055 72 mkdir -p $fs/usr/share/slim
rcx@6055 73
Hans-G?nter@25366 74 cp -a $install/etc $fs
Hans-G?nter@25366 75 cp -a $install/usr/bin $fs/usr
Hans-G?nter@25366 76 cp -a $install/usr/lib $fs/usr
Hans-G?nter@25366 77 cp -a $stuff/themes $fs/usr/share/slim
pankso@263 78
Hans-G?nter@25366 79 # rc script.
Hans-G?nter@25366 80 cp -a $stuff/etc $fs
Hans-G?nter@25366 81 chown -R root.root $fs
Hans-G?nter@25310 82
Hans-G?nter@25310 83 # slim-theme manager and default strings
Hans-G?nter@25310 84 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
Hans-G?nter@25310 85 install -m644 $stuff/strings $fs/usr/share/slim/strings
pankso@2053 86 }
pankso@2053 87
pascal@1062 88 post_install()
pascal@1062 89 {
Hans-G?nter@25366 90 # replace default user tux by user with userid 1000 in slim.conf
pascal@1784 91 local USER
pascal@18730 92 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
pascal@1784 93 [ -n "$USER" ] &&
pascal@18730 94 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
pascal@18730 95 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
pascal@1062 96 }
al@19756 97
Hans-G?nter@25310 98 testsuite()
Hans-G?nter@25310 99 {
Hans-G?nter@25366 100 readelf -h $install/usr/bin/slim
Hans-G?nter@25310 101 }