wok annotate tazpkg/receipt @ rev 18731

Up slitaz-configs(268), tazpkg(895)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 21 01:01:58 2015 +0200 (2015-12-21)
parents 681d5e33a652
children b685a2174a02
rev   line source
pankso@10 1 # SliTaz package receipt.
pankso@10 2
pankso@10 3 PACKAGE="tazpkg"
al@18731 4 VERSION="895"
pankso@192 5 CATEGORY="base-system"
al@18236 6 SHORT_DESC="SliTaz packages manager"
pankso@10 7 MAINTAINER="pankso@slitaz.org"
pascal@15021 8 LICENSE="GPL3"
al@18286 9 WEB_SITE="http://www.slitaz.org/"
slaxemulator@9506 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@10929 11 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.gz"
jozee@4973 12 TAGS="slitaz package-manager"
pankso@12778 13 HOST_ARCH="i486 arm"
pankso@10 14
pascal@14469 15 DEPENDS="busybox gettext-base"
pascal@18015 16 SUGGESTED="tazpanel"
al@18690 17 BUILD_DEPENDS="gettext tidy-html5"
pankso@12879 18
pankso@12879 19 # Gettext is part of cross-chroot
pankso@12879 20 case "$ARCH" in
pankso@12879 21 arm) BUILD_DEPENDS="" ;;
pankso@12879 22 esac
pankso@12879 23
al@18049 24 # Rules to gen a SliTaz package suitable for TazPkg.
pankso@10 25 #
al@18254 26 # TazPkg is SliTaz packages manager. On an other GNU/Linux install
al@18254 27 # can be do with `make install` from the sources directory.
pankso@10 28 #
pankso@6776 29
pankso@6776 30 # Rules to configure and make the package.
pankso@6776 31 compile_rules()
pankso@6776 32 {
pascal@17427 33 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
pankso@6776 34 }
pankso@6776 35
pankso@10 36 genpkg_rules()
pankso@10 37 {
pankso@10792 38 cp -a $install/* $fs
pankso@722 39 chown -R root.root $fs
al@17261 40
pankso@3952 41 # Default icon for mimetype (freedesktop standard compliant file
pankso@3952 42 # manager will diplay a tazpkg icon for SliTaz packages).
psychomaniak@17872 43 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
psychomaniak@17872 44 mkdir -p $icons
psychomaniak@17872 45 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
al@18508 46
al@18508 47 # Temporary patch for tazpkg-839
al@18508 48 sed -i 's|echo "\(tazpkg .*\)"$|\1|' $install/usr/bin/tazpkg
pankso@10 49 }
gokhlayeh@8157 50
gokhlayeh@8157 51 post_install()
gokhlayeh@8157 52 {
pankso@10792 53 # Apply a fix to config file /etc/slitaz/slitaz.conf
al@17261 54 [ -f /etc/slitaz/slitaz.conf ] && \
al@17261 55 sed -i 's/LOCAL_STATE/LOCALSTATE/' /etc/slitaz/slitaz.conf
al@17261 56
pankso@10792 57 # Make sure new config is present
pankso@9492 58 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
pankso@9492 59 cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"
pankso@9492 60 # The geometry of the desktop notification
pankso@9492 61 NOTIFY_GEOM="360x80-0+24"
pankso@9492 62
pankso@9492 63 EOT
pankso@9492 64 fi
al@18595 65 :
gokhlayeh@9379 66 }