wok annotate tazpkg/receipt @ rev 13226
Move from undigest: airstrike
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 14 13:38:50 2012 +0200 (2012-08-14) |
parents | b8b9d97e8958 |
children | f3adc70df2e7 |
rev | line source |
---|---|
pankso@10 | 1 # SliTaz package receipt. |
pankso@10 | 2 |
pankso@10 | 3 PACKAGE="tazpkg" |
pankso@12857 | 4 VERSION="5.0" |
pankso@192 | 5 CATEGORY="base-system" |
pankso@10 | 6 SHORT_DESC="SliTaz packages manager." |
pankso@10 | 7 MAINTAINER="pankso@slitaz.org" |
slaxemulator@9506 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@10 | 9 WEB_SITE="http://www.slitaz.org/" |
slaxemulator@10929 | 10 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.gz" |
jozee@4973 | 11 TAGS="slitaz package-manager" |
pankso@12778 | 12 HOST_ARCH="i486 arm" |
pankso@10 | 13 |
pankso@12879 | 14 DEPENDS="busybox gettext-base libtaz" |
pankso@12879 | 15 BUILD_DEPENDS="gettext" |
pankso@12879 | 16 |
pankso@12879 | 17 # Gettext is part of cross-chroot |
pankso@12879 | 18 case "$ARCH" in |
pankso@12879 | 19 arm) BUILD_DEPENDS="" ;; |
pankso@12879 | 20 esac |
pankso@12879 | 21 |
pankso@10 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10 | 23 # |
pankso@10 | 24 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install |
pankso@10 | 25 # can be do with : make install from the sources directory. |
pankso@10 | 26 # |
pankso@6776 | 27 |
pankso@6776 | 28 # Rules to configure and make the package. |
pankso@6776 | 29 compile_rules() |
pankso@6776 | 30 { |
pankso@6776 | 31 cd $src |
slaxemulator@10929 | 32 make && make DESTDIR=$DESTDIR install |
pankso@6776 | 33 } |
pankso@6776 | 34 |
pankso@10 | 35 genpkg_rules() |
pankso@10 | 36 { |
pankso@10792 | 37 cp -a $install/* $fs |
pankso@722 | 38 chown -R root.root $fs |
pankso@3952 | 39 # Default icon for mimetype (freedesktop standard compliant file |
pankso@3952 | 40 # manager will diplay a tazpkg icon for SliTaz packages). |
pankso@3952 | 41 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes |
pankso@3952 | 42 cd $fs/usr/share/icons/hicolor/32x32/mimetypes |
pankso@3952 | 43 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png |
pankso@3952 | 44 ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png |
pankso@10 | 45 } |
gokhlayeh@8157 | 46 |
gokhlayeh@8157 | 47 post_install() |
gokhlayeh@8157 | 48 { |
pankso@10792 | 49 # Apply a fix to config file /etc/slitaz/slitaz.conf |
gokhlayeh@8157 | 50 [ -f /etc/slitaz/slitaz.conf ] && sed 's/LOCAL_STATE/LOCALSTATE/'\ |
pankso@9492 | 51 -i /etc/slitaz/slitaz.conf |
pankso@10792 | 52 # Make sure new config is present |
pankso@9492 | 53 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then |
pankso@9492 | 54 cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT" |
pankso@9492 | 55 # The geometry of the desktop notification |
pankso@9492 | 56 NOTIFY_GEOM="360x80-0+24" |
pankso@9492 | 57 |
pankso@9492 | 58 EOT |
pankso@9492 | 59 fi |
gokhlayeh@9379 | 60 } |