wok-next annotate tazpkg/receipt @ rev 19652

Up cookutils(886), slitaz-base-files(328), tazpkg(944), tzdata(2017a); dbus: changes in pre/post-install (fix group number, etc.)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 01 23:29:10 2017 +0200 (2017-03-01)
parents 10986d2bf6bd
children a531be466833
rev   line source
pankso@10 1 # SliTaz package receipt.
pankso@10 2
pankso@10 3 PACKAGE="tazpkg"
al@19652 4 VERSION="944"
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/"
al@19583 10 TAGS="slitaz package-manager"
al@19583 11 HOST_ARCH="i486 arm"
al@19583 12
al@19588 13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19588 14 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.bz2"
pankso@10 15
pascal@14469 16 DEPENDS="busybox gettext-base"
al@19601 17 SUGGESTED="tazpanel"
al@18968 18 BUILD_DEPENDS="gettext tidy-html5 libnotify-dev"
pankso@12879 19
pankso@12879 20 # Gettext is part of cross-chroot
pankso@12879 21 case "$ARCH" in
pankso@12879 22 arm) BUILD_DEPENDS="" ;;
pankso@12879 23 esac
pankso@12879 24
al@18049 25 # Rules to gen a SliTaz package suitable for TazPkg.
pankso@10 26 #
al@18254 27 # TazPkg is SliTaz packages manager. On an other GNU/Linux install
al@18254 28 # can be do with `make install` from the sources directory.
pankso@10 29 #
pankso@6776 30
pankso@6776 31 # Rules to configure and make the package.
pankso@6776 32 compile_rules()
pankso@6776 33 {
pascal@17427 34 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
pankso@6776 35 }
pankso@6776 36
pankso@10 37 genpkg_rules()
pankso@10 38 {
pankso@10792 39 cp -a $install/* $fs
pankso@722 40 chown -R root.root $fs
al@17261 41
pankso@3952 42 # Default icon for mimetype (freedesktop standard compliant file
pankso@3952 43 # manager will diplay a tazpkg icon for SliTaz packages).
psychomaniak@17872 44 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
psychomaniak@17872 45 mkdir -p $icons
psychomaniak@17872 46 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
pankso@10 47 }
gokhlayeh@8157 48
gokhlayeh@8157 49 post_install()
gokhlayeh@8157 50 {
pankso@10792 51 # Apply a fix to config file /etc/slitaz/slitaz.conf
al@17261 52 [ -f /etc/slitaz/slitaz.conf ] && \
al@17261 53 sed -i 's/LOCAL_STATE/LOCALSTATE/' /etc/slitaz/slitaz.conf
al@17261 54
pankso@10792 55 # Make sure new config is present
pankso@9492 56 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
al@19601 57 cat >> "$root/etc/slitaz/tazpkg.conf" <<EOT
pankso@9492 58 # The geometry of the desktop notification
pankso@9492 59 NOTIFY_GEOM="360x80-0+24"
pankso@9492 60
pankso@9492 61 EOT
pankso@9492 62 fi
al@18595 63 :
gokhlayeh@9379 64 }