wok-current view slim/receipt @ rev 25603
Use default gcc 6.3 for libvpx
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 13:05:40 2023 +0000 (14 months ago) |
parents | 9c874a5c3b17 |
children | 3ad63c8fc2f9 |
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="https://www.berlios.de/software/slim/"
10 REPOLOGY="slim-login-manager"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/iwamatsu/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
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 # 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 # replace default user tux by user with userid 1000 in slim.conf
90 local USER
91 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
92 [ -n "$USER" ] &&
93 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
94 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
95 }
97 testsuite()
98 {
99 readelf -h $install/usr/bin/slim
100 }