wok-6.x annotate slim/receipt @ rev 24960
updated ncurses packages (6.2 -> 6.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 17:46:30 2022 +0100 (2022-04-23) |
parents | ee53899c6189 |
children | 9c874a5c3b17 |
rev | line source |
---|---|
pankso@263 | 1 # SliTaz package receipt. |
pankso@263 | 2 |
pankso@263 | 3 PACKAGE="slim" |
al@14601 | 4 VERSION="1.3.5" |
pankso@263 | 5 CATEGORY="x-window" |
al@17992 | 6 SHORT_DESC="Desktop-independent graphical login manager for X11" |
pankso@263 | 7 MAINTAINER="pankso@slitaz.org" |
al@14601 | 8 LICENSE="GPL2" |
pascal@20672 | 9 WEB_SITE="https://sourceforge.net/projects/slim.berlios/" |
pankso@263 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@263 | 11 WGET_URL="http://download.berlios.de/slim/$TARBALL" |
pascal@1212 | 12 CONFIG_FILES="/etc/slim.conf" |
pankso@16114 | 13 HOST_ARCH="i486 arm" |
al@19685 | 14 COOKOPTS="!pngquant op8" |
pankso@263 | 15 |
pankso@16103 | 16 RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too |
pankso@16103 | 17 SUGGESTED="slim-theme-default slitaz-configs" |
al@14601 | 18 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu" |
pankso@16103 | 19 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev" |
pankso@16103 | 20 |
pankso@16115 | 21 # Handle cross compilation |
pankso@16103 | 22 case "$ARCH" in |
pankso@16114 | 23 i?86) |
pankso@16114 | 24 BUILD_DEPENDS="$BUILD_DEPENDS cmake" |
pankso@16114 | 25 INCL=/usr/include |
pankso@16114 | 26 LIBS=/usr/lib ;; |
pankso@16114 | 27 arm*) |
pankso@16114 | 28 INCL=/cross/$ARCH/sysroot/usr/include |
pankso@16114 | 29 LIBS=/cross/$ARCH/sysroot/usr/lib ;; |
pankso@16103 | 30 esac |
pankso@9737 | 31 |
pascal@24071 | 32 current_version() |
pascal@24071 | 33 { |
pascal@24299 | 34 wget -O - https://github.com/iwamatsu/slim/tags 2>/dev/null | \ |
pascal@24071 | 35 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24071 | 36 } |
pascal@24071 | 37 |
pankso@263 | 38 # Rules to configure and make the package. |
pankso@263 | 39 compile_rules() |
pankso@263 | 40 { |
al@14601 | 41 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1 |
al@14601 | 42 mkdir build; cd build |
al@14601 | 43 cmake \ |
al@14601 | 44 -DCMAKE_INSTALL_PREFIX=/usr \ |
pankso@16114 | 45 -DX11_Xmu_LIB="$LIBS/libXmu.so" \ |
pankso@16114 | 46 -DX11_Xft_INCLUDE_PATH=${INCL} \ |
pankso@16114 | 47 -DX11_Xmu_INCLUDE_PATH= ${INCL} \ |
al@14601 | 48 .. && |
al@14601 | 49 make && |
al@14601 | 50 make DESTDIR=$DESTDIR install |
pankso@263 | 51 } |
pankso@263 | 52 |
pankso@263 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@263 | 54 genpkg_rules() |
pankso@263 | 55 { |
rcx@6055 | 56 mkdir -p $fs/usr/share/slim |
al@14601 | 57 cp -a $install/etc $fs |
al@14601 | 58 cp -a $install/usr/bin $fs/usr |
pascal@8974 | 59 cp -a $stuff/themes $fs/usr/share/slim |
rcx@6055 | 60 |
pankso@2838 | 61 # Config file and rc script. |
pascal@8974 | 62 cp -a $stuff/etc $fs |
pankso@1090 | 63 chown -R root.root $fs |
pankso@263 | 64 |
al@16779 | 65 # slim-theme manager & default strings |
al@14601 | 66 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme |
al@16779 | 67 install -m644 $stuff/strings $fs/usr/share/slim/strings |
pankso@2053 | 68 } |
pankso@2053 | 69 |
pascal@1062 | 70 post_install() |
pascal@1062 | 71 { |
pascal@1784 | 72 local USER |
pascal@18730 | 73 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd") |
pascal@1784 | 74 [ -n "$USER" ] && |
pascal@18730 | 75 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf" |
pascal@18730 | 76 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf" |
pascal@1062 | 77 } |
al@19756 | 78 |
al@19756 | 79 testsuite() { ldd $install/usr/bin/slim; } |