wok-6.x annotate slitaz-configs-base/receipt @ rev 16265
Up cookutils 3.3.1
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 05 11:16:11 2014 +0000 (2014-04-05) |
parents | 5072c50fafc5 |
children | da5c42f01a06 |
rev | line source |
---|---|
pascal@7805 | 1 # SliTaz package receipt. |
pascal@7805 | 2 |
pascal@7805 | 3 PACKAGE="slitaz-configs-base" |
pankso@15794 | 4 VERSION="5.2.2" |
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" |
gokhlayeh@7907 | 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" |
pankso@12411 | 16 |
pankso@16081 | 17 # Handle SliTaz arch |
pankso@16081 | 18 case "$SLITAZ_ARCH" in |
pankso@16081 | 19 arm*) DEPENDS="" ;; |
pankso@16081 | 20 esac |
pankso@16081 | 21 |
pascal@7805 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7805 | 23 genpkg_rules() |
al@14908 | 24 { |
pankso@16081 | 25 # Copy rootfs files and set permissions. |
pankso@16081 | 26 case "$ARCH" in |
pankso@16167 | 27 arm*) |
pankso@16167 | 28 # Most ARM configs are in: slitaz-arm repo but Openbox, webhome |
pankso@16167 | 29 # are common to all arch. |
pankso@16262 | 30 mkdir -p $fs/usr/share $fs/etc |
pankso@16167 | 31 cp -a $src/rootfs/usr/bin $fs/usr |
pankso@16167 | 32 cp -a $src/rootfs/usr/share/webhome $fs/usr/share |
pankso@16167 | 33 cp -a $src/rootfs/usr/share/applications $fs/usr/share |
pankso@16167 | 34 cp -a $src/rootfs/usr/share/pixmaps $fs/usr/share |
pankso@16262 | 35 cp -a $src/rootfs/usr/share/themes $fs/usr/share |
pankso@16262 | 36 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share |
pankso@16263 | 37 cp -a $src/rootfs/etc/lxpanel $fs/etc ;; |
pankso@16167 | 38 *) |
pankso@16167 | 39 mkdir -p \ |
pankso@16167 | 40 $fs/etc \ |
pankso@16167 | 41 $fs/boot \ |
pankso@16167 | 42 $fs/usr/share \ |
pankso@16167 | 43 $fs/etc/skel/Music \ |
pankso@16167 | 44 $fs/etc/skel/Documents |
pankso@16167 | 45 cp -a $src/rootfs/boot $fs |
pankso@16167 | 46 cp -a $src/rootfs/etc/skel $fs/etc |
pankso@16167 | 47 cp -a $src/rootfs/etc/X11 $fs/etc |
pankso@16167 | 48 |
pankso@16167 | 49 for i in images pixmaps themes webhome; do |
pankso@16167 | 50 cp -r $src/rootfs/usr/share/$i $fs/usr/share |
pankso@16167 | 51 done ;; |
pankso@16081 | 52 esac |
al@14908 | 53 |
pascal@7805 | 54 cp -a $src/rootfs/root $fs |
pascal@7805 | 55 chown -R root.root $fs |
pascal@7805 | 56 chmod 0750 $fs/root |
pascal@7805 | 57 } |