wok-next view slitaz-configs-base/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents 31964b29e8cc
children
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs-base"
4 VERSION="300"
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 HOST_ARCH="i486 arm"
12 TARBALL="slitaz-configs-$VERSION.tar.bz2"
13 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.bz2"
15 DEPENDS="tazlito tazpkg"
16 SIBLINGS="slitaz-configs"
18 # Handle SliTaz arch
19 case "$SLITAZ_ARCH" in
20 arm*) DEPENDS="" ;;
21 esac
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 # Copy rootfs files and set permissions.
27 case "$ARCH" in
28 arm*)
29 # Most ARM configs are in slitaz-arm repo but Openbox, webhome
30 # are common to all arch.
31 mkdir -p $fs/usr/share $fs/etc
32 cp -a $src/rootfs/usr/bin $fs/usr
33 cp -a $src/rootfs/etc/lxpanel $fs/etc
34 cp -a $src/rootfs/etc/skel $fs/etc
35 # No dbus on ARM
36 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc
37 ;;
38 *)
39 mkdir -p $fs/usr/share
40 # XDG user directories
41 for dir in Desktop Documents Downloads Images Music Public \
42 Templates Videos; do
43 mkdir -p $fs/etc/skel/$dir
44 done
45 cp -a $src/rootfs/boot $fs/
46 cp -a $src/rootfs/etc/skel $fs/etc
47 cp -a $src/rootfs/etc/polkit-1 $fs/etc
48 ;;
49 esac
51 for i in images pixmaps themes webhome; do
52 cp -r $src/rootfs/usr/share/$i $fs/usr/share
53 done
55 cp -a $src/rootfs/root $fs
56 chown -R root.root $fs
57 chmod 0750 $fs/root
58 }
60 post_install()
61 {
62 [ -z "$quiet" ] && echo -en "\nUpdating ~/.xinitrc"
63 for i in $(ls -d "$1/root" "$1"/home/* 2>/dev/null); do
64 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
65 done
66 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
67 }