wok-4.x annotate tazpkg/receipt @ rev 8157
LOCAL_STATE typo fix was not applied as /etc/slitaz/slitaz.conf is a config file
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Jan 26 21:35:51 2011 +0100 (2011-01-26) |
parents | 03ce89cf27d3 |
children | a177dbf487db |
rev | line source |
---|---|
pankso@10 | 1 # SliTaz package receipt. |
pankso@10 | 2 |
pankso@10 | 3 PACKAGE="tazpkg" |
slaxemulator@8156 | 4 VERSION="4.2.1" |
pankso@192 | 5 CATEGORY="base-system" |
pankso@10 | 6 SHORT_DESC="SliTaz packages manager." |
pankso@10 | 7 MAINTAINER="pankso@slitaz.org" |
slaxemulator@6807 | 8 DEPENDS="busybox gettext-base" |
slaxemulator@7518 | 9 BUILD_DEPENDS="gettext" |
gokhlayeh@8012 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@10 | 11 WEB_SITE="http://www.slitaz.org/" |
gokhlayeh@8012 | 12 WGET_URL="http://mirror.slitaz.org/sources/tazpkg/$TARBALL" |
jozee@4973 | 13 TAGS="slitaz package-manager" |
pankso@10 | 14 |
pankso@10 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10 | 16 # |
pankso@10 | 17 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install |
pankso@10 | 18 # can be do with : make install from the sources directory. |
pankso@10 | 19 # |
pankso@6776 | 20 |
pankso@6776 | 21 # Rules to configure and make the package. |
pankso@6776 | 22 compile_rules() |
pankso@6776 | 23 { |
pankso@6776 | 24 cd $src |
pankso@6776 | 25 make DESTDIR=$PWD/_pkg install |
pankso@6776 | 26 } |
pankso@6776 | 27 |
pankso@10 | 28 genpkg_rules() |
pankso@10 | 29 { |
pankso@6776 | 30 cp -a $_pkg/usr $fs |
pankso@6776 | 31 cp -a $_pkg/etc $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 { |
gokhlayeh@8157 | 43 #Apply a fix to config file /etc/slitaz/slitaz.conf |
gokhlayeh@8157 | 44 [ -f /etc/slitaz/slitaz.conf ] && sed 's/LOCAL_STATE/LOCALSTATE/'\ |
gokhlayeh@8157 | 45 -i /etc/slitaz/slitaz.conf |
gokhlayeh@8157 | 46 } |