wok-current view slim/receipt @ rev 25356
updated tig (2.5.1 -> 2.5.6)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 27 06:32:16 2022 +0100 (2022-07-27) |
parents | ac8ca9758df1 |
children | ca6fa52862c9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim"
4 VERSION="1.3.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://slim.berlios.de/"
10 REPOLOGY="slim-login-manager"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://downloads.sourceforge.net/project/slim.berlios/$TARBALL"
15 RELATED="slim-pam slim-theme-default"
16 SUGGESTED="slim-theme-default slitaz-configs"
17 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
18 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev"
20 CONFIG_FILES="/etc/slim.conf"
22 COOKOPTS="!pngquant op8"
24 HOST_ARCH="i486 arm"
26 # @maintainer: Please update also slim-pam and slim-theme-default
28 # Handle cross compilation
29 case "$ARCH" in
30 (i?86)
31 BUILD_DEPENDS="$BUILD_DEPENDS cmake"
32 INCL=/usr/include
33 LIBS=/usr/lib
34 ;;
35 (arm*)
36 INCL=/cross/$ARCH/sysroot/usr/include
37 LIBS=/cross/$ARCH/sysroot/usr/lib
38 ;;
39 esac
41 current_version()
42 {
43 wget -O - https://github.com/iwamatsu/slim/tags 2>/dev/null | \
44 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
45 }
47 # Rules to configure and make the package.
48 compile_rules()
49 {
50 patch --input=$stuff/patches/app.cpp-$VERSION || return 1
51 patch --input=$stuff/patches/cfg.cpp-$VERSION || return 1
52 patch --input=$stuff/patches/slim.conf-$VERSION || return 1
54 # do NOT build slimlock
55 sed -i -e '/install(TARGETS slimlock/d' CMakeLists.txt
57 mkdir _build &&
58 cd _build &&
59 cmake .. \
60 -D CMAKE_INSTALL_PREFIX=/usr \
61 -D X11_Xmu_LIB="$LIBS/libXmu.so" \
62 -D X11_Xft_INCLUDE_PATH=${INCL} \
63 -D X11_Xmu_INCLUDE_PATH=${INCL} &&
64 make &&
65 make install DESTDIR=$DESTDIR
66 }
68 # Rules to gen a SliTaz package suitable for Tazpkg.
69 genpkg_rules()
70 {
71 mkdir -p $fs/usr/share/slim
73 cp -a $install/etc $fs
74 cp -a $install/usr/bin $fs/usr
75 cp -a $install/usr/lib $fs/usr
76 cp -a $stuff/themes $fs/usr/share/slim
78 # Configuration file and rc script.
79 cp -a $stuff/etc $fs
80 chown -R root.root $fs
82 # slim-theme manager and default strings
83 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
84 install -m644 $stuff/strings $fs/usr/share/slim/strings
85 }
87 post_install()
88 {
89 local USER
90 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
91 [ -n "$USER" ] &&
92 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
93 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
94 }
96 testsuite()
97 {
98 ldd $install/usr/bin/slim
99 }