wok view slim/receipt @ rev 24987

grub: add gpt support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 12 07:08:39 2022 +0000 (2022-05-12)
parents ee53899c6189
children 9c874a5c3b17
line source
1 # SliTaz package receipt.
3 PACKAGE="slim"
4 VERSION="1.3.5"
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://sourceforge.net/projects/slim.berlios/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://download.berlios.de/slim/$TARBALL"
12 CONFIG_FILES="/etc/slim.conf"
13 HOST_ARCH="i486 arm"
14 COOKOPTS="!pngquant op8"
16 RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too
17 SUGGESTED="slim-theme-default slitaz-configs"
18 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
19 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev"
21 # Handle cross compilation
22 case "$ARCH" in
23 i?86)
24 BUILD_DEPENDS="$BUILD_DEPENDS cmake"
25 INCL=/usr/include
26 LIBS=/usr/lib ;;
27 arm*)
28 INCL=/cross/$ARCH/sysroot/usr/include
29 LIBS=/cross/$ARCH/sysroot/usr/lib ;;
30 esac
32 current_version()
33 {
34 wget -O - https://github.com/iwamatsu/slim/tags 2>/dev/null | \
35 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
36 }
38 # Rules to configure and make the package.
39 compile_rules()
40 {
41 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
42 mkdir build; cd build
43 cmake \
44 -DCMAKE_INSTALL_PREFIX=/usr \
45 -DX11_Xmu_LIB="$LIBS/libXmu.so" \
46 -DX11_Xft_INCLUDE_PATH=${INCL} \
47 -DX11_Xmu_INCLUDE_PATH= ${INCL} \
48 .. &&
49 make &&
50 make DESTDIR=$DESTDIR install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/share/slim
57 cp -a $install/etc $fs
58 cp -a $install/usr/bin $fs/usr
59 cp -a $stuff/themes $fs/usr/share/slim
61 # Config file and rc script.
62 cp -a $stuff/etc $fs
63 chown -R root.root $fs
65 # slim-theme manager & default strings
66 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
67 install -m644 $stuff/strings $fs/usr/share/slim/strings
68 }
70 post_install()
71 {
72 local USER
73 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
74 [ -n "$USER" ] &&
75 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
76 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
77 }
79 testsuite() { ldd $install/usr/bin/slim; }