wok-current view slitaz-configs-base/receipt @ rev 25722
Adjust deps for gtk3 apps, add default gtk3-settings
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Jun 19 16:37:46 2024 +0000 (5 months ago) |
parents | db9d9cb3c164 |
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 # Add default gtk3 settings to have nice GTK3 apps
58 cp $stuff/gtk3-settings.ini $fs/etc/skel/.config/gtk-3.0/settings.ini
60 for i in images pixmaps themes webhome; do
61 cp -r $src/rootfs/usr/share/$i $fs/usr/share
62 done
64 cp -a $src/rootfs/root $fs
65 chown -R root.root $fs
66 chmod 0750 $fs/root
67 }
69 post_install()
70 {
71 [ -z "$quiet" ] && echo -en "\nUpdating ~/.xinitrc"
72 for i in $(ls -d "$1/root" "$1"/home/* 2> /dev/null); do
73 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
74 done
75 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
76 }