wok annotate slim/receipt @ rev 25310
updated slim, slim-pam and slim-theme-default (1.3.5 -> 1.3.6)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 17:04:10 2022 +0100 (2022-07-20) |
parents | ac8ca9758df1 |
children | ca6fa52862c9 |
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@25310 | 9 WEB_SITE="http://slim.berlios.de/" |
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@25310 | 13 WGET_URL="https://downloads.sourceforge.net/project/slim.berlios/$TARBALL" |
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@25310 | 73 cp -a $install/etc $fs |
Hans-G?nter@25310 | 74 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@25310 | 75 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@25310 | 76 cp -a $stuff/themes $fs/usr/share/slim |
pankso@263 | 77 |
Hans-G?nter@25310 | 78 # Configuration file and rc script. |
Hans-G?nter@25310 | 79 cp -a $stuff/etc $fs |
Hans-G?nter@25310 | 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 { |
pascal@1784 | 89 local USER |
pascal@18730 | 90 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd") |
pascal@1784 | 91 [ -n "$USER" ] && |
pascal@18730 | 92 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf" |
pascal@18730 | 93 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf" |
pascal@1062 | 94 } |
al@19756 | 95 |
Hans-G?nter@25310 | 96 testsuite() |
Hans-G?nter@25310 | 97 { |
Hans-G?nter@25310 | 98 ldd $install/usr/bin/slim |
Hans-G?nter@25310 | 99 } |