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

updated tzdata (2019c -> 2022a)
author Hans-G?nter Theisgen
date Sat Jul 30 10:43:02 2022 +0100 (2022-07-30)
parents 7e911016a644
children
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs-base"
4 VERSION="320"
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"
16 SIBLINGS="slitaz-configs"
18 # Handle SliTaz arch
19 case "$SLITAZ_ARCH" in
20 arm*) DEPENDS="" ;;
21 esac
23 current_version()
24 {
25 wget -O - http://hg.slitaz.org/slitaz-configs/ 2>/dev/null | \
26 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-configs/rev/|;s|<.*||' | \
27 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 # Copy rootfs files and set permissions.
34 case "$ARCH" in
35 arm*)
36 # Most ARM configs are in: slitaz-arm repo but Openbox, webhome
37 # are common to all arch.
38 mkdir -p $fs/usr/share $fs/etc
39 cp -a $src/rootfs/usr/bin $fs/usr
40 cp -a $src/rootfs/etc/lxpanel $fs/etc
41 cp -a $src/rootfs/etc/skel $fs/etc
42 # No dbus on ARM
43 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc ;;
44 *)
45 mkdir -p \
46 $fs/usr/share
47 # XDG user directories
48 for dir in Desktop Documents Downloads Images Music Public \
49 Templates Videos; do
50 mkdir -p $fs/etc/skel/$dir
51 done
52 cp -a $src/rootfs/boot $fs/
53 cp -a $src/rootfs/etc/skel $fs/etc
54 cp -a $src/rootfs/etc/polkit-1 $fs/etc ;;
55 esac
57 for i in images pixmaps themes webhome; do
58 cp -r $src/rootfs/usr/share/$i $fs/usr/share
59 done
61 cp -a $src/rootfs/root $fs
62 chown -R root.root $fs
63 chmod 0750 $fs/root
64 }
66 post_install()
67 {
68 [ -z "$quiet" ] && echo -en "\nUpdating ~/.xinitrc"
69 for i in $(ls -d "$1/root" "$1"/home/* 2> /dev/null); do
70 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
71 done
72 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
73 }