wok-current annotate slitaz-configs-base/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | 7e911016a644 |
children | 3e33c7fca531 |
rev | line source |
---|---|
pascal@7805 | 1 # SliTaz package receipt. |
pascal@7805 | 2 |
pascal@7805 | 3 PACKAGE="slitaz-configs-base" |
pascal@24131 | 4 VERSION="320" |
pascal@7805 | 5 CATEGORY="base-system" |
pascal@7805 | 6 SHORT_DESC="SliTaz config files for text based systems." |
pascal@7805 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL3" |
al@14908 | 9 WEB_SITE="http://www.slitaz.org/" |
gokhlayeh@7907 | 10 SOURCE="slitaz-configs" |
psychomaniak@17341 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
slaxemulator@12260 | 12 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz" |
pankso@16081 | 13 HOST_ARCH="i486 arm" |
pascal@7805 | 14 |
pankso@12411 | 15 DEPENDS="tazlito tazpkg" |
al@19617 | 16 SIBLINGS="slitaz-configs" |
pankso@12411 | 17 |
pankso@16081 | 18 # Handle SliTaz arch |
pankso@16081 | 19 case "$SLITAZ_ARCH" in |
pankso@16081 | 20 arm*) DEPENDS="" ;; |
pankso@16081 | 21 esac |
pankso@16081 | 22 |
pascal@24069 | 23 current_version() |
pascal@24069 | 24 { |
pascal@24069 | 25 wget -O - http://hg.slitaz.org/slitaz-configs/ 2>/dev/null | \ |
pascal@24069 | 26 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-configs/rev/|;s|<.*||' | \ |
pascal@24069 | 27 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||' |
pascal@24069 | 28 } |
pascal@24069 | 29 |
pascal@7805 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7805 | 31 genpkg_rules() |
al@14908 | 32 { |
pankso@16081 | 33 # Copy rootfs files and set permissions. |
pankso@16081 | 34 case "$ARCH" in |
pankso@16167 | 35 arm*) |
pankso@16167 | 36 # Most ARM configs are in: slitaz-arm repo but Openbox, webhome |
pankso@16167 | 37 # are common to all arch. |
pankso@16262 | 38 mkdir -p $fs/usr/share $fs/etc |
pankso@16167 | 39 cp -a $src/rootfs/usr/bin $fs/usr |
pankso@16374 | 40 cp -a $src/rootfs/etc/lxpanel $fs/etc |
psychomaniak@17433 | 41 cp -a $src/rootfs/etc/skel $fs/etc |
psychomaniak@17433 | 42 # No dbus on ARM |
psychomaniak@17433 | 43 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc ;; |
pankso@16167 | 44 *) |
pankso@16167 | 45 mkdir -p \ |
al@16714 | 46 $fs/usr/share |
al@16714 | 47 # XDG user directories |
al@16714 | 48 for dir in Desktop Documents Downloads Images Music Public \ |
al@16714 | 49 Templates Videos; do |
al@16714 | 50 mkdir -p $fs/etc/skel/$dir |
al@16714 | 51 done |
pascal@18777 | 52 cp -a $src/rootfs/boot $fs/ |
pankso@16558 | 53 cp -a $src/rootfs/etc/skel $fs/etc |
pankso@16558 | 54 cp -a $src/rootfs/etc/polkit-1 $fs/etc ;; |
pankso@16081 | 55 esac |
pankso@16421 | 56 |
pankso@16421 | 57 for i in images pixmaps themes webhome; do |
pankso@16421 | 58 cp -r $src/rootfs/usr/share/$i $fs/usr/share |
pankso@16421 | 59 done |
al@14908 | 60 |
pascal@7805 | 61 cp -a $src/rootfs/root $fs |
pascal@7805 | 62 chown -R root.root $fs |
pascal@7805 | 63 chmod 0750 $fs/root |
pascal@7805 | 64 } |
psychomaniak@16998 | 65 |
psychomaniak@16998 | 66 post_install() |
psychomaniak@16998 | 67 { |
al@18964 | 68 [ -z "$quiet" ] && echo -en "\nUpdating ~/.xinitrc" |
pascal@18730 | 69 for i in $(ls -d "$1/root" "$1"/home/* 2> /dev/null); do |
pascal@18730 | 70 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i" |
al@17035 | 71 done |
pascal@18730 | 72 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc" |
psychomaniak@16998 | 73 } |