wok-next annotate slim/receipt @ rev 21079
emacs: update dependencies
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 22 14:46:21 2018 +0200 (2018-12-22) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
al@19845 | 1 # SliTaz package receipt v2. |
pankso@263 | 2 |
pankso@263 | 3 PACKAGE="slim" |
al@20905 | 4 VERSION="1.3.6" |
pankso@263 | 5 CATEGORY="x-window" |
al@17992 | 6 SHORT_DESC="Desktop-independent graphical login manager for X11" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@14601 | 8 LICENSE="GPL2" |
al@19845 | 9 WEB_SITE="https://sourceforge.net/projects/slim.berlios/" |
al@19845 | 10 COOKOPTS="!pngquant op8" |
al@19845 | 11 |
pankso@263 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19845 | 13 WGET_URL="$SF_MIRROR/slim.berlios/$TARBALL" |
pankso@263 | 14 |
al@21078 | 15 BUILD_DEPENDS="cmake libx11-dev freetype-dev libjpeg-turbo-dev zlib-dev \ |
al@21078 | 16 libpng-dev fontconfig-dev libxft-dev libxrender-dev libxmu-dev \ |
al@21078 | 17 pam-dev libunistring libxrandr-dev consolekit2-dev" |
al@21020 | 18 SPLIT="$PACKAGE-theme-default $PACKAGE" # $PACKAGE-pam:pam" |
pankso@9737 | 19 |
al@20357 | 20 compile_rules() { |
al@20357 | 21 case "$SET" in |
al@20357 | 22 '') SET_ARGS='-DUSE_PAM=no';; |
al@20357 | 23 pam) SET_ARGS='-DUSE_PAM=yes';; |
al@20357 | 24 esac |
al@20357 | 25 |
al@21020 | 26 mkdir build |
al@21020 | 27 cd build |
al@14601 | 28 cmake \ |
al@20905 | 29 -DCMAKE_BUILD_TYPE=Release \ |
al@20905 | 30 -DCMAKE_SKIP_RPATH=ON \ |
al@14601 | 31 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@20905 | 32 -DUSE_CONSOLEKIT=yes \ |
al@21020 | 33 -DX11_Xmu_LIB="/usr/lib/libXmu.so" \ |
al@21020 | 34 -DX11_Xft_INCLUDE_PATH=/usr/include \ |
al@21020 | 35 -DX11_Xmu_INCLUDE_PATH=/usr/include \ |
al@20357 | 36 $SET_ARGS \ |
al@14601 | 37 .. && |
al@14601 | 38 make && |
al@20357 | 39 make install || return 1 |
al@19845 | 40 |
al@20357 | 41 cp -r $stuff/themes $install/usr/share/slim |
al@19845 | 42 |
al@20357 | 43 # Config file and rc script. |
al@20357 | 44 cp -a $stuff/etc $install |
al@19845 | 45 |
al@20357 | 46 # slim-theme manager & default strings |
al@20357 | 47 install -m755 $stuff/slim-theme $install/usr/bin/slim-theme |
al@20357 | 48 install -m644 $stuff/strings $install/usr/share/slim/strings |
al@19845 | 49 |
al@20357 | 50 chown -R root:root $install |
pankso@263 | 51 } |
pankso@263 | 52 |
al@19845 | 53 genpkg_rules() { |
al@19845 | 54 case $PACKAGE in |
al@19845 | 55 slim-theme-default) |
al@20357 | 56 copy default/ |
al@19845 | 57 CAT="customization|default theme bundled with SLiM" |
al@19845 | 58 DEPENDS="slim slitaz-configs-base" |
al@19845 | 59 ;; |
al@19845 | 60 slim) |
al@20357 | 61 copy @std @rm |
al@21078 | 62 DEPENDS="fontconfig freetype libjpeg-turbo libpng libx11 \ |
al@21078 | 63 libxft libxmu libxrender zlib" |
al@19845 | 64 CONFIG_FILES="/etc/slim.conf" |
al@19845 | 65 SUGGESTED="slim-theme-default slitaz-configs" |
al@19845 | 66 ;; |
pascal@20288 | 67 slim-pam) |
al@20357 | 68 copy @std |
pascal@20288 | 69 rm -rf $fs/usr/share/slim/themes/default |
al@21078 | 70 DEPENDS="fontconfig freetype libjpeg-turbo libpng libx11 \ |
al@21078 | 71 libxft libxmu libxrender zlib pam" |
pascal@20288 | 72 CONFIG_FILES="/etc/slim.conf" |
pascal@20288 | 73 SUGGESTED="slim-theme-default slitaz-configs" |
pascal@20288 | 74 PROVIDE="slim:pam" |
al@20292 | 75 CAT="x-window|PAM enabled" |
pascal@20288 | 76 ;; |
al@19845 | 77 esac |
pankso@2053 | 78 } |
pankso@2053 | 79 |
al@19845 | 80 post_install_slim() { |
al@19845 | 81 local USER=$(awk -F: '/:1000:1000:/ { print $1 }' "$1/etc/passwd") |
pascal@1784 | 82 [ -n "$USER" ] && |
pascal@18730 | 83 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf" |
pascal@18730 | 84 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf" |
pascal@1062 | 85 } |
al@19845 | 86 |
pascal@20288 | 87 post_install_slim_pam() { |
pascal@20288 | 88 local USER=$(awk -F: '/:1000:1000:/ { print $1 }' "$1/etc/passwd") |
pascal@20288 | 89 [ -n "$USER" ] && |
pascal@20288 | 90 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf" |
pascal@20288 | 91 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf" |
pascal@20288 | 92 } |
pascal@20288 | 93 |
al@19845 | 94 post_install_slim_theme_default() { |
al@19845 | 95 chroot "$1/" slim-theme -sdefault |
al@19845 | 96 } |
al@19845 | 97 |
al@19845 | 98 pre_remove_slim_theme_default() { |
al@19845 | 99 chroot "$1/" slim-theme -fdefault |
al@19845 | 100 } |