wok-next annotate slitaz-configs/receipt @ rev 19534
Up cookutils (842)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 29 17:31:57 2016 +0200 (2016-11-29) |
parents | e97a0707db43 |
children | 266eb7ab8b5a |
rev | line source |
---|---|
pankso@274 | 1 # SliTaz package receipt. |
pankso@274 | 2 |
pankso@274 | 3 PACKAGE="slitaz-configs" |
al@19508 | 4 VERSION="297" |
pankso@274 | 5 CATEGORY="base-system" |
pankso@12411 | 6 SHORT_DESC="SliTaz config files and artwork." |
pankso@274 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL3" |
pankso@274 | 9 WEB_SITE="http://www.slitaz.org/" |
pascal@14355 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@14758 | 11 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz" |
pankso@16167 | 12 HOST_ARCH="i486 arm" |
al@19412 | 13 SIBLINGS="slitaz-configs-base" |
pankso@274 | 14 |
pankso@16374 | 15 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage \ |
pankso@16374 | 16 xorg-xcompmgr transset-df ttf-dejavu slim" |
pankso@12161 | 17 |
pankso@16167 | 18 # Special case for ARM since some (most) config files are in slitaz-arm repo. |
pankso@16167 | 19 # i486/arm common configs are provided by slitaz-configs-base. |
pankso@16167 | 20 case "$SLITAZ_ARCH" in |
pankso@16421 | 21 i?86) CONFIG_FILES="/etc/slitaz/applications.conf" ;; |
pankso@16423 | 22 arm*) DEPENDS="slitaz-arm-configs ttf-dejavu slim" ;; |
pankso@16167 | 23 esac |
pankso@16167 | 24 |
pankso@16566 | 25 case "$ARCH" in |
pankso@16566 | 26 i?86*) BUILD_DEPENDS="locale-fr locale-pt_BR locale-ru" ;; |
pankso@16566 | 27 esac |
pankso@16566 | 28 |
al@14908 | 29 # Rules to configure and make the package. |
al@14908 | 30 compile_rules() |
al@14908 | 31 { |
pankso@16167 | 32 case "$ARCH" in |
pankso@16167 | 33 i?86) |
pankso@16167 | 34 make DESTDIR=$DESTDIR menu |
pankso@16167 | 35 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;; |
pankso@16167 | 36 esac |
al@14908 | 37 } |
al@14908 | 38 |
pankso@274 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@274 | 40 genpkg_rules() |
al@14803 | 41 { |
pankso@16167 | 42 cd ${src} |
pankso@16167 | 43 case "$ARCH" in |
pankso@16167 | 44 i?86) |
pankso@16167 | 45 # Copy rootfs files from the stuff and set permissions. |
pankso@16167 | 46 mkdir -p $fs/etc/xdg/openbox $fs/usr/share |
pankso@16167 | 47 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg |
pankso@16167 | 48 |
pankso@16167 | 49 # /usr/share |
pankso@16167 | 50 for i in applications lxdm slim slitaz |
pankso@16167 | 51 do |
pankso@16167 | 52 cp -r $src/rootfs/usr/share/$i $fs/usr/share |
pankso@16167 | 53 done |
pankso@16167 | 54 cp -a $src/rootfs/usr/bin $fs/usr |
pankso@16167 | 55 cp -a $src/rootfs/etc/lxpanel $fs/etc |
pankso@16167 | 56 cp -a $src/rootfs/etc/slitaz $fs/etc |
pankso@16421 | 57 cp -a $install/etc/xdg/openbox/menu.en.xml \ |
pankso@16421 | 58 $install/etc/xdg/openbox/menu.xml \ |
pankso@16167 | 59 $fs/etc/xdg/openbox ;; |
pankso@16167 | 60 arm) |
pankso@16421 | 61 mkdir -p $fs/usr/share |
pankso@16421 | 62 cp -a $src/rootfs/usr/share/applications $fs/usr/share |
pankso@16421 | 63 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share ;; |
pankso@16167 | 64 esac |
al@18612 | 65 |
al@18612 | 66 # Put LXPanel profile to /etc/skel for new users |
al@18612 | 67 mkdir -p $fs/etc/skel/.config/lxpanel |
al@18612 | 68 cp -a $fs/etc/lxpanel/slitaz $fs/etc/skel/.config/lxpanel |
al@18612 | 69 |
pankso@715 | 70 chown -R root.root $fs |
pankso@274 | 71 } |
pankso@2838 | 72 |
pankso@2838 | 73 post_install() |
pankso@2838 | 74 { |
pankso@16167 | 75 case "$SLITAZ_ARCH" in |
pankso@16167 | 76 i?86) |
pankso@16167 | 77 # By default slim provide a base theme and config file have both |
pankso@16167 | 78 # base and slitaz who will be choose randomly, so make sure we use |
pankso@16167 | 79 # only slitaz theme. |
pascal@18730 | 80 if grep -q 'current_theme slitaz,base' "$1/etc/slim.conf"; then |
pankso@16167 | 81 sed -i s/"current_theme .*"/"current_theme slitaz"/ \ |
pascal@18730 | 82 "$1/etc/slim.conf" |
pankso@16167 | 83 fi ;; |
pankso@16167 | 84 esac |
pankso@2838 | 85 } |