wok-next annotate slitaz-configs-base/receipt @ rev 18874

Up node (0.10.41)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 04 16:21:24 2016 +0100 (2016-02-04)
parents f7749de4ed0c
children 755411fc8baf
rev   line source
pascal@7805 1 # SliTaz package receipt.
pascal@7805 2
pascal@7805 3 PACKAGE="slitaz-configs-base"
pascal@18777 4 VERSION="270"
pascal@7805 5 CATEGORY="base-system"
pascal@7805 6 SHORT_DESC="SliTaz config files for text based systems."
pascal@7805 7 MAINTAINER="pankso@slitaz.org"
pascal@15021 8 LICENSE="GPL3"
al@14908 9 WEB_SITE="http://www.slitaz.org/"
gokhlayeh@7907 10 SOURCE="slitaz-configs"
psychomaniak@17341 11 TARBALL="$SOURCE-$VERSION.tar.gz"
slaxemulator@12260 12 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz"
pankso@16081 13 HOST_ARCH="i486 arm"
pascal@7805 14
pankso@12411 15 DEPENDS="tazlito tazpkg"
pankso@12411 16
pankso@16081 17 # Handle SliTaz arch
pankso@16081 18 case "$SLITAZ_ARCH" in
pankso@16081 19 arm*) DEPENDS="" ;;
pankso@16081 20 esac
pankso@16081 21
pascal@7805 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7805 23 genpkg_rules()
al@14908 24 {
pankso@16081 25 # Copy rootfs files and set permissions.
pankso@16081 26 case "$ARCH" in
pankso@16167 27 arm*)
pankso@16167 28 # Most ARM configs are in: slitaz-arm repo but Openbox, webhome
pankso@16167 29 # are common to all arch.
pankso@16262 30 mkdir -p $fs/usr/share $fs/etc
pankso@16167 31 cp -a $src/rootfs/usr/bin $fs/usr
pankso@16374 32 cp -a $src/rootfs/etc/lxpanel $fs/etc
psychomaniak@17433 33 cp -a $src/rootfs/etc/skel $fs/etc
psychomaniak@17433 34 # No dbus on ARM
psychomaniak@17433 35 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc ;;
pankso@16167 36 *)
pankso@16167 37 mkdir -p \
al@16714 38 $fs/usr/share
al@16714 39 # XDG user directories
al@16714 40 for dir in Desktop Documents Downloads Images Music Public \
al@16714 41 Templates Videos; do
al@16714 42 mkdir -p $fs/etc/skel/$dir
al@16714 43 done
pascal@18777 44 cp -a $src/rootfs/boot $fs/
pankso@16558 45 cp -a $src/rootfs/etc/skel $fs/etc
pankso@16558 46 cp -a $src/rootfs/etc/polkit-1 $fs/etc ;;
pankso@16081 47 esac
pankso@16421 48
pankso@16421 49 for i in images pixmaps themes webhome; do
pankso@16421 50 cp -r $src/rootfs/usr/share/$i $fs/usr/share
pankso@16421 51 done
al@14908 52
pascal@7805 53 cp -a $src/rootfs/root $fs
pascal@7805 54 chown -R root.root $fs
pascal@7805 55 chmod 0750 $fs/root
pascal@7805 56 }
psychomaniak@16998 57
psychomaniak@16998 58 post_install()
psychomaniak@16998 59 {
al@18483 60 echo; echo -n "Updating ~/.xinitrc"
pascal@18730 61 for i in $(ls -d "$1/root" "$1"/home/* 2> /dev/null); do
pascal@18730 62 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
al@17035 63 done
pascal@18730 64 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
psychomaniak@16998 65 }