wok-6.x view slitaz-configs-base/receipt @ rev 19309

Up cookutils (817)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 10 21:39:08 2016 +0300 (2016-07-10)
parents a4223cab64a6
children 6c436b58038a
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs-base"
4 VERSION="287"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz config files for text based systems."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 SOURCE="slitaz-configs"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz"
13 HOST_ARCH="i486 arm"
15 DEPENDS="tazlito tazpkg"
17 # Handle SliTaz arch
18 case "$SLITAZ_ARCH" in
19 arm*) DEPENDS="" ;;
20 esac
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 # Copy rootfs files and set permissions.
26 case "$ARCH" in
27 arm*)
28 # Most ARM configs are in: slitaz-arm repo but Openbox, webhome
29 # are common to all arch.
30 mkdir -p $fs/usr/share $fs/etc
31 cp -a $src/rootfs/usr/bin $fs/usr
32 cp -a $src/rootfs/etc/lxpanel $fs/etc
33 cp -a $src/rootfs/etc/skel $fs/etc
34 # No dbus on ARM
35 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc ;;
36 *)
37 mkdir -p \
38 $fs/usr/share
39 # XDG user directories
40 for dir in Desktop Documents Downloads Images Music Public \
41 Templates Videos; do
42 mkdir -p $fs/etc/skel/$dir
43 done
44 cp -a $src/rootfs/boot $fs/
45 cp -a $src/rootfs/etc/skel $fs/etc
46 cp -a $src/rootfs/etc/polkit-1 $fs/etc ;;
47 esac
49 for i in images pixmaps themes webhome; do
50 cp -r $src/rootfs/usr/share/$i $fs/usr/share
51 done
53 cp -a $src/rootfs/root $fs
54 chown -R root.root $fs
55 chmod 0750 $fs/root
56 }
58 post_install()
59 {
60 [ -z "$quiet" ] && echo -en "\nUpdating ~/.xinitrc"
61 for i in $(ls -d "$1/root" "$1"/home/* 2> /dev/null); do
62 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
63 done
64 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
65 }