wok-6.x annotate zim/receipt @ rev 10856
Up: slitaz-configs (4.4) - Last cooking style include and ready for RC
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jun 14 21:12:08 2011 +0200 (2011-06-14) |
parents | 8bf3f5f3482b |
children | 90eda8e742d9 |
rev | line source |
---|---|
pankso@3369 | 1 # SliTaz package receipt. |
pankso@3369 | 2 |
pankso@3369 | 3 PACKAGE="zim" |
slaxemulator@10187 | 4 VERSION="0.52" |
pankso@3369 | 5 CATEGORY="utilities" |
pankso@3369 | 6 SHORT_DESC="A desktop wiki." |
gokhlayeh@7034 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
gokhlayeh@5873 | 8 DEPENDS="python pygtk pygobject python-simplejson python-xdg desktop-file-utils shared-mime-info xdg-utils" |
gokhlayeh@5873 | 9 BUILD_DEPENDS="$DEPENDS pycairo-dev pygobject-dev pygtk-dev python-dev" |
gokhlayeh@5873 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@3369 | 11 WEB_SITE="http://zim-wiki.org/" |
gokhlayeh@5873 | 12 WGET_URL="http://zim-wiki.org/downloads/$TARBALL" |
gokhlayeh@5873 | 13 TAGS="wiki notebook" |
pankso@3369 | 14 |
pankso@3369 | 15 # Rules to configure and make the package. |
pankso@3369 | 16 compile_rules() |
pankso@3369 | 17 { |
pankso@3369 | 18 cd $src |
slaxemulator@10187 | 19 ./setup.py install --root=$DESTDIR install |
pankso@3369 | 20 } |
pankso@3369 | 21 |
pankso@3369 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3369 | 23 genpkg_rules() |
pankso@3369 | 24 { |
pankso@3369 | 25 mkdir -p $fs/usr |
paul@4845 | 26 cp -a $_pkg/usr $fs |
pankso@3369 | 27 } |
pankso@3369 | 28 |
pankso@3369 | 29 post_install() |
pankso@3369 | 30 { |
pankso@3369 | 31 echo -n "Processing post-install commands..." |
pankso@3369 | 32 # Create mimeinfo.cache in /usr/share/applications |
pankso@3369 | 33 update-desktop-database |
gokhlayeh@5873 | 34 update-mime-database /usr/share/mime |
gokhlayeh@5873 | 35 xdg-icon-resource install --context mimetypes \ |
gokhlayeh@5873 | 36 --size 64 /usr/share/pixmaps/zim.png application-x-zim-notebook |
pankso@3369 | 37 status |
gokhlayeh@5873 | 38 } |