wok annotate slim-pam/receipt @ rev 24793

updated libgpg-error and libgpg-error-dev (1.37 -> 1.44)
author Hans-G?nter Theisgen
date Mon Mar 21 15:45:38 2022 +0100 (2022-03-21)
parents 826c1bab582b
children 9c874a5c3b17
rev   line source
pascal@2223 1 # SliTaz package receipt.
pascal@2223 2
pascal@2223 3 PACKAGE="slim-pam"
al@14601 4 VERSION="1.3.5"
pascal@2223 5 CATEGORY="x-window"
al@14601 6 SHORT_DESC="Desktop-independent graphical login manager for X11 (PAM enabled)."
pascal@2223 7 MAINTAINER="pascal.bellard@slitaz.org"
al@14601 8 LICENSE="GPL2"
pascal@20679 9 WEB_SITE="https://sourceforge.net/projects/slim.berlios/"
pascal@2223 10 SOURCE="slim"
pascal@2223 11 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@21220 12 WGET_URL="http://download.berlios.de/slim/$TARBALL"
pascal@2223 13 CONFIG_FILES="/etc/slim.conf"
al@14601 14
pascal@2223 15 PROVIDE="slim:pam"
al@14601 16 DEPENDS="gcc-lib-base libjpeg libpng pam xorg-libXft xorg-libXmu"
al@14601 17 SUGGESTED="slim-theme-default slitaz-configs"
al@14601 18 BUILD_DEPENDS="cmake freetype-dev jpeg-dev libpng-dev xorg-libXft-dev \
al@14601 19 xorg-libXmu-dev pam-dev"
al@14601 20 RELATED="slim slim-theme-default"
pascal@10452 21
pascal@24353 22 # What is the latest version available today?
pascal@24353 23 current_version()
pascal@24353 24 {
pascal@24353 25 wget -O - https://sourceforge.net/projects/slim.berlios/files/ 2>/dev/null | \
pascal@24353 26 sed '/scope="row/!d;/slim-/!d;s|.*/slim-||;s|.tar.*||;q'
pascal@24353 27 }
pascal@24353 28
pascal@2223 29 # Rules to configure and make the package.
pascal@2223 30 compile_rules()
pascal@2223 31 {
al@14601 32 patch -p1 < $WOK/$SOURCE/stuff/$SOURCE-$VERSION.patch || return 1
al@14601 33 mkdir build; cd build
pankso@13364 34 cmake \
pankso@13364 35 -DCMAKE_INSTALL_PREFIX=/usr \
al@14601 36 -DX11_Xmu_LIB=-lXmu \
al@14601 37 -DUSE_PAM=yes \
al@14601 38 .. &&
al@14601 39 make &&
al@14601 40 make DESTDIR=$DESTDIR install
pascal@2223 41 }
pascal@2223 42
pascal@2223 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2223 44 genpkg_rules()
pascal@2223 45 {
rcx@6055 46 mkdir -p $fs/usr/share/slim
al@14601 47 cp -a $install/etc $fs
pankso@13364 48 cp -a $install/usr/bin $fs/usr
al@14601 49 cp -a $WOK/$SOURCE/stuff/themes $fs/usr/share/slim
pankso@13364 50
rcx@6055 51 # Config file and rc script.
al@14601 52 cp -a $WOK/$SOURCE/stuff/etc $fs
pascal@2223 53 chown -R root.root $fs
pascal@2223 54
al@14601 55 # slim-theme manager
al@14601 56 install -m755 $WOK/$SOURCE/stuff/slim-theme $fs/usr/bin/slim-theme
pascal@2223 57 }
pascal@2223 58
pascal@2223 59 post_install()
pascal@2223 60 {
pascal@2223 61 local USER
pascal@18730 62 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
pascal@2223 63 [ -n "$USER" ] &&
pascal@18730 64 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
al@14601 65
al@14601 66 # In order to update the SLiM, we need to restart it.
al@14601 67 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts
al@14601 68 # X session and the user will get a terrible console with strange letters.
al@14601 69 printf '%40s\n' | tr ' ' '='
al@14601 70 echo "In order to update the SLiM,"
al@14601 71 echo "please, reboot your system!"
pascal@2223 72 }
pascal@7632 73
pascal@7632 74 pre_remove()
pascal@7632 75 {
pascal@7632 76 tazpkg get-install ${PACKAGE%-pam}
pascal@7632 77 }
al@19756 78
al@19756 79 testsuite() { ldd $install/usr/bin/slim; }