wok-next annotate slitaz-configs/receipt @ rev 19856

Up dbus, lxdm, slitaz-configs, syslinux-slitaz-repack; add slitaz-next with all the Next-related hotfixes.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Sep 07 15:25:51 2017 +0300 (2017-09-07)
parents d57d8c4514f4
children 7ae7ca392d9e
rev   line source
al@19856 1 # SliTaz package receipt v2.
pankso@274 2
pankso@274 3 PACKAGE="slitaz-configs"
al@19853 4 VERSION="309"
pankso@274 5 CATEGORY="base-system"
al@19856 6 SHORT_DESC="SliTaz config files"
pankso@274 7 MAINTAINER="pankso@slitaz.org"
pascal@15021 8 LICENSE="GPL3"
pankso@274 9 WEB_SITE="http://www.slitaz.org/"
pankso@16167 10 HOST_ARCH="i486 arm"
al@19588 11
al@19588 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19588 13 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.bz2"
pankso@274 14
al@19856 15 BUILD_DEPENDS_arm="gettext"
al@19856 16 BUILD_DEPENDS="locale-fr locale-pt_BR locale-ru gettext"
al@19856 17 SPLIT="slitaz-themes slitaz-configs-base"
pankso@16566 18
al@14908 19 # Rules to configure and make the package.
al@14908 20 compile_rules()
al@14908 21 {
pankso@16167 22 case "$ARCH" in
pankso@16167 23 i?86)
pankso@16167 24 make DESTDIR=$DESTDIR menu
al@19588 25 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
al@19588 26 ;;
pankso@16167 27 esac
al@19856 28
al@19856 29 cp -a $src/rootfs/* $install
al@19856 30
al@19856 31 # Put applications.conf to /etc/skel
al@19856 32 mkdir -p $install/etc/skel/.config/slitaz/
al@19856 33 cp -a $install/etc/slitaz/applications.conf $install/etc/skel/.config/slitaz/
al@19856 34
al@19856 35 # Put LXPanel profile to /etc/skel for new users
al@19856 36 mkdir -p $install/etc/skel/.config/lxpanel
al@19856 37 cp -a $install/etc/lxpanel/slitaz $install/etc/skel/.config/lxpanel
al@19856 38
al@19856 39 # Add XDG user directories
al@19856 40 for dir in Desktop Documents Downloads Images Music Public Templates Videos; do
al@19856 41 mkdir -p $install/etc/skel/$dir
al@19856 42 done
al@19856 43
al@19856 44 mv $install/boot/isolinux/splash.jpg $install/boot/isolinux/splash.png
al@19856 45 rm $install/etc/skel/Templates/*
al@19856 46
al@19856 47 chown -R root:root $install
al@14908 48 }
al@14908 49
pankso@274 50 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@274 51 genpkg_rules()
al@14803 52 {
al@19856 53 case $PACKAGE in
al@19856 54 slitaz-configs)
al@19856 55 # Special case for ARM since some (most) config files are in slitaz-arm repo.
al@19856 56 # i486/arm common configs are provided by slitaz-configs-base.
al@19856 57 case "$ARCH" in
al@19856 58 i?86)
al@19856 59 copy \
al@19856 60 /etc/lxpanel/ \
al@19856 61 /etc/skel/.config/lxpanel/ \
al@19856 62 /etc/skel/.config/lxsession/ \
al@19856 63 /etc/skel/.gtkrc-2.0* \
al@19856 64 /etc/skel/.icons/ \
al@19856 65 /etc/skel/.Xdefaults \
al@19856 66 /etc/skel/.xinitrc \
al@19856 67 /etc/skel/.Xresources \
al@19856 68 /etc/skel/.xsession \
al@19856 69 /etc/skel/Templates/ \
al@19856 70 /etc/xdg/openbox/autostart \
al@19856 71 /etc/xdg/openbox/environment \
al@19856 72 /etc/xdg/openbox/menu.en.xml \
al@19856 73 /etc/xdg/openbox/menu.xml \
al@19856 74 /etc/xdg/openbox/rc.xml \
al@19856 75 /usr/bin/ \
al@19856 76 /usr/share/applications/ \
al@19856 77 /usr/share/images/ \
al@19856 78 /usr/share/pixmaps/ \
al@19856 79 /usr/share/slitaz/ \
al@19856 80 /usr/share/templates/ \
al@19856 81 /usr/share/webhome/ \
al@19856 82 /root/
al@19856 83 DEPENDS="slitaz-configs-base xorg-libXcomposite \
al@19856 84 xorg-libXdamage xorg-xcompmgr transset-df ttf-dejavu \
al@19856 85 slim"
al@19856 86 ;;
al@19856 87 arm)
al@19856 88 copy \
al@19856 89 /usr/share/applications/ \
al@19856 90 /usr/share/slitaz/
al@19856 91 DEPENDS="slitaz-arm-configs ttf-dejavu slim"
al@19856 92 ;;
al@19856 93 esac
al@19856 94
al@19856 95 CAT="base-system|for GUI systems"
al@19588 96 ;;
al@19856 97 slitaz-themes)
al@19856 98 copy /usr/share/themes/SliTaz*/ /usr/share/slim/ /usr/share/lxdm/
al@19856 99 CAT="customization|GTK+2, Openbox3, LXDM and SLiM themes"
al@19856 100 DEPENDS="slim"
al@19588 101 ;;
al@19856 102 slitaz-configs-base)
al@19856 103 CAT="base-system|for text based systems"
al@18612 104
al@19856 105 # Copy rootfs files and set permissions.
al@19856 106 case "$ARCH" in
al@19856 107 arm*)
al@19856 108 # Most ARM configs are in slitaz-arm repo but Openbox, webhome
al@19856 109 # are common to all arch.
al@19856 110 copy \
al@19856 111 /usr/bin/ \
al@19856 112 /etc/lxpanel/ \
al@19856 113 /etc/skel/
al@19856 114 # No dbus on ARM
al@19856 115 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc
al@19856 116 ;;
al@19856 117 *)
al@19856 118 copy \
al@19856 119 /boot/ \
al@19856 120 /etc/skel/ \
al@19856 121 /etc/polkit-1/ \
al@19856 122 /etc/slitaz/
al@19856 123 CONFIG_FILES="/etc/slitaz/applications.conf"
al@19856 124 ;;
al@19856 125 esac
al@19856 126 copy \
al@19856 127 /usr/share/ \
al@19856 128 /root/
al@19856 129 remove_already_packed
al@18612 130
al@19856 131 DEPENDS="tazlito tazpkg"
al@19856 132 # Handle SliTaz arch
al@19856 133 case "$SLITAZ_ARCH" in
al@19856 134 arm*) DEPENDS="" ;;
al@19856 135 esac
al@19588 136 ;;
pankso@16167 137 esac
pankso@2838 138 }
al@19856 139
al@19856 140 # By default SLiM provide a base theme and config file have both
al@19856 141 # base and slitaz who will be choose randomly, so make sure we use
al@19856 142 # only slitaz theme.
al@19856 143 post_install_slitaz_themes() {
al@19856 144 chroot "$1/" slim-theme -s slitaz
al@19856 145 }
al@19856 146 pre_remove_slitaz_themes() {
al@19856 147 chroot "$1/" slim-theme -f slitaz
al@19856 148 }
al@19856 149
al@19856 150 post_install_slitaz_configs_base() {
al@19856 151 for i in $(ls -d "$1/root" "$1"/home/* 2>/dev/null); do
al@19856 152 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
al@19856 153 done
al@19856 154 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
al@19856 155 chmod 0750 $1/root
al@19856 156 }