wok annotate slim/receipt @ rev 25615

Add libslirp (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 03 12:03:26 2023 +0000 (16 months ago)
parents 9c874a5c3b17
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
Hans-G?nter@25310 24 HOST_ARCH="i486 arm"
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
Hans-G?nter@25310 30 (i?86)
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} \
Hans-G?nter@25310 63 -D X11_Xmu_INCLUDE_PATH=${INCL} &&
al@14601 64 make &&
Hans-G?nter@25310 65 make install DESTDIR=$DESTDIR
pankso@263 66 }
pankso@263 67
pankso@263 68 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@263 69 genpkg_rules()
pankso@263 70 {
rcx@6055 71 mkdir -p $fs/usr/share/slim
rcx@6055 72
Hans-G?nter@25366 73 cp -a $install/etc $fs
Hans-G?nter@25366 74 cp -a $install/usr/bin $fs/usr
Hans-G?nter@25366 75 cp -a $install/usr/lib $fs/usr
Hans-G?nter@25366 76 cp -a $stuff/themes $fs/usr/share/slim
pankso@263 77
Hans-G?nter@25366 78 # rc script.
Hans-G?nter@25366 79 cp -a $stuff/etc $fs
Hans-G?nter@25366 80 chown -R root.root $fs
Hans-G?nter@25310 81
Hans-G?nter@25310 82 # slim-theme manager and default strings
Hans-G?nter@25310 83 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
Hans-G?nter@25310 84 install -m644 $stuff/strings $fs/usr/share/slim/strings
pankso@2053 85 }
pankso@2053 86
pascal@1062 87 post_install()
pascal@1062 88 {
Hans-G?nter@25366 89 # replace default user tux by user with userid 1000 in slim.conf
pascal@1784 90 local USER
pascal@18730 91 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
pascal@1784 92 [ -n "$USER" ] &&
pascal@18730 93 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
pascal@18730 94 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
pascal@1062 95 }
al@19756 96
Hans-G?nter@25310 97 testsuite()
Hans-G?nter@25310 98 {
Hans-G?nter@25366 99 readelf -h $install/usr/bin/slim
Hans-G?nter@25310 100 }