wok-6.x annotate slitaz-configs/receipt @ rev 24574
updated fribidi and fribidi-dev (1.0.8 -> 1.0.11)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 27 07:58:48 2022 +0100 (2022-02-27) |
parents | 7e911016a644 |
children |
rev | line source |
---|---|
pankso@274 | 1 # SliTaz package receipt. |
pankso@274 | 2 |
pankso@274 | 3 PACKAGE="slitaz-configs" |
pascal@24131 | 4 VERSION="320" |
pankso@274 | 5 CATEGORY="base-system" |
pankso@12411 | 6 SHORT_DESC="SliTaz config files and artwork." |
pankso@274 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL3" |
pankso@274 | 9 WEB_SITE="http://www.slitaz.org/" |
pascal@14355 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@14758 | 11 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz" |
pankso@16167 | 12 HOST_ARCH="i486 arm" |
pankso@274 | 13 |
pankso@16374 | 14 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage \ |
pankso@16374 | 15 xorg-xcompmgr transset-df ttf-dejavu slim" |
al@19620 | 16 BUILD_DEPENDS="" # see below |
al@19617 | 17 SIBLINGS="slitaz-configs-base" |
pankso@12161 | 18 |
pankso@16167 | 19 # Special case for ARM since some (most) config files are in slitaz-arm repo. |
pankso@16167 | 20 # i486/arm common configs are provided by slitaz-configs-base. |
pankso@16167 | 21 case "$SLITAZ_ARCH" in |
pankso@16421 | 22 i?86) CONFIG_FILES="/etc/slitaz/applications.conf" ;; |
pankso@16423 | 23 arm*) DEPENDS="slitaz-arm-configs ttf-dejavu slim" ;; |
pankso@16167 | 24 esac |
pankso@16167 | 25 |
pankso@16566 | 26 case "$ARCH" in |
al@19620 | 27 i?86*) BUILD_DEPENDS="gettext locale-fr locale-hu locale-ja locale-pt_BR \ |
al@19620 | 28 locale-ru locale-zh_CN" ;; |
pankso@16566 | 29 esac |
pankso@16566 | 30 |
pascal@24069 | 31 current_version() |
pascal@24069 | 32 { |
pascal@24069 | 33 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \ |
pascal@24069 | 34 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \ |
pascal@24069 | 35 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||' |
pascal@24069 | 36 } |
pascal@24069 | 37 |
al@14908 | 38 # Rules to configure and make the package. |
al@14908 | 39 compile_rules() |
al@14908 | 40 { |
pankso@16167 | 41 case "$ARCH" in |
pankso@16167 | 42 i?86) |
pankso@16167 | 43 make DESTDIR=$DESTDIR menu |
al@19620 | 44 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml |
al@19620 | 45 ;; |
pankso@16167 | 46 esac |
al@14908 | 47 } |
al@14908 | 48 |
pankso@274 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@274 | 50 genpkg_rules() |
al@14803 | 51 { |
pankso@16167 | 52 cd ${src} |
pankso@16167 | 53 case "$ARCH" in |
pankso@16167 | 54 i?86) |
pankso@16167 | 55 # Copy rootfs files from the stuff and set permissions. |
pankso@16167 | 56 mkdir -p $fs/etc/xdg/openbox $fs/usr/share |
pankso@16167 | 57 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg |
pankso@16167 | 58 |
pankso@16167 | 59 # /usr/share |
pankso@16167 | 60 for i in applications lxdm slim slitaz |
pankso@16167 | 61 do |
pankso@16167 | 62 cp -r $src/rootfs/usr/share/$i $fs/usr/share |
pankso@16167 | 63 done |
pankso@16167 | 64 cp -a $src/rootfs/usr/bin $fs/usr |
pankso@16167 | 65 cp -a $src/rootfs/etc/lxpanel $fs/etc |
pankso@16167 | 66 cp -a $src/rootfs/etc/slitaz $fs/etc |
pankso@16421 | 67 cp -a $install/etc/xdg/openbox/menu.en.xml \ |
pankso@16421 | 68 $install/etc/xdg/openbox/menu.xml \ |
pankso@16167 | 69 $fs/etc/xdg/openbox ;; |
pankso@16167 | 70 arm) |
pankso@16421 | 71 mkdir -p $fs/usr/share |
pankso@16421 | 72 cp -a $src/rootfs/usr/share/applications $fs/usr/share |
pankso@16421 | 73 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share ;; |
pankso@16167 | 74 esac |
al@18612 | 75 |
al@18612 | 76 # Put LXPanel profile to /etc/skel for new users |
al@18612 | 77 mkdir -p $fs/etc/skel/.config/lxpanel |
al@18612 | 78 cp -a $fs/etc/lxpanel/slitaz $fs/etc/skel/.config/lxpanel |
al@18612 | 79 |
pankso@715 | 80 chown -R root.root $fs |
pankso@274 | 81 } |
pankso@2838 | 82 |
pankso@2838 | 83 post_install() |
pankso@2838 | 84 { |
pankso@16167 | 85 case "$SLITAZ_ARCH" in |
pankso@16167 | 86 i?86) |
pankso@16167 | 87 # By default slim provide a base theme and config file have both |
pankso@16167 | 88 # base and slitaz who will be choose randomly, so make sure we use |
pankso@16167 | 89 # only slitaz theme. |
pascal@18730 | 90 if grep -q 'current_theme slitaz,base' "$1/etc/slim.conf"; then |
pankso@16167 | 91 sed -i s/"current_theme .*"/"current_theme slitaz"/ \ |
pascal@18730 | 92 "$1/etc/slim.conf" |
pankso@16167 | 93 fi ;; |
pankso@16167 | 94 esac |
pankso@2838 | 95 } |