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