wok-next annotate tazpkg/receipt @ rev 19826
Up cookutils, gst0-python, radiotray, slitaz-base-files, slitaz-tools-boxes, slitaz-tools, tazinst-gui, tazinst, tazlito, tazpanel-extra, tazpanel, tazpkg, tazusb
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 01 02:25:02 2017 +0300 (2017-08-01) |
parents | e5a5af728c96 |
children | ec4ebc01cb25 |
rev | line source |
---|---|
al@19826 | 1 # SliTaz package receipt v2. |
pankso@10 | 2 |
pankso@10 | 3 PACKAGE="tazpkg" |
al@19817 | 4 VERSION="950" |
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 HOST_ARCH="i486 arm" |
al@19583 | 11 |
al@19588 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19588 | 13 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.bz2" |
pankso@10 | 14 |
al@19826 | 15 BUILD_DEPENDS_arm="" |
al@18968 | 16 BUILD_DEPENDS="gettext tidy-html5 libnotify-dev" |
pankso@12879 | 17 |
al@18049 | 18 # Rules to gen a SliTaz package suitable for TazPkg. |
pankso@10 | 19 # |
al@18254 | 20 # TazPkg is SliTaz packages manager. On an other GNU/Linux install |
al@18254 | 21 # can be do with `make install` from the sources directory. |
pankso@10 | 22 # |
pankso@6776 | 23 |
pankso@6776 | 24 # Rules to configure and make the package. |
pankso@6776 | 25 compile_rules() |
pankso@6776 | 26 { |
pascal@17427 | 27 make && make DESTDIR=$DESTDIR VERSION=$VERSION install |
pankso@6776 | 28 } |
pankso@6776 | 29 |
pankso@10 | 30 genpkg_rules() |
pankso@10 | 31 { |
pankso@10792 | 32 cp -a $install/* $fs |
pankso@722 | 33 chown -R root.root $fs |
al@17261 | 34 |
pankso@3952 | 35 # Default icon for mimetype (freedesktop standard compliant file |
pankso@3952 | 36 # manager will diplay a tazpkg icon for SliTaz packages). |
psychomaniak@17872 | 37 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes" |
psychomaniak@17872 | 38 mkdir -p $icons |
psychomaniak@17872 | 39 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png |
al@19826 | 40 DEPENDS="busybox gettext-base" |
al@19826 | 41 SUGGESTED="tazpanel" |
al@19826 | 42 TAGS="slitaz package-manager" |
pankso@10 | 43 } |
gokhlayeh@8157 | 44 |
al@19826 | 45 post_install() { |
pankso@10792 | 46 # Make sure new config is present |
al@19826 | 47 if ! grep -q ^NOTIFY_GEOM "$1/etc/slitaz/tazpkg.conf"; then |
al@19826 | 48 cat >> "$1/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 |
al@18595 | 54 : |
gokhlayeh@9379 | 55 } |