wok view zim/receipt @ rev 15771
fpm2: add icon
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Jan 07 22:29:24 2014 +0100 (2014-01-07) |
parents | 2fe3e9901e7a |
children | 533c0cab6960 |
line source
1 # SliTaz package receipt.
3 PACKAGE="zim"
4 VERSION="0.56"
5 CATEGORY="utilities"
6 SHORT_DESC="A desktop wiki."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://zim-wiki.org/"
11 WGET_URL="http://zim-wiki.org/downloads/$TARBALL"
12 TAGS="wiki notebook"
14 DEPENDS="python pygtk pygobject python-simplejson python-xdg desktop-file-utils shared-mime-info xdg-utils"
15 BUILD_DEPENDS="$DEPENDS pycairo-dev pygobject-dev pygtk-dev python-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./setup.py install --root=$DESTDIR install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $install/usr $fs
29 }
31 post_install()
32 {
33 echo -n "Processing post-install commands..."
34 # Create mimeinfo.cache in /usr/share/applications
35 chroot "$1/" update-desktop-database
36 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
37 chroot "$1/" xdg-icon-resource install --context mimetypes \
38 --size 64 /usr/share/pixmaps/zim.png application-x-zim-notebook
39 status
40 }