wok annotate pyneighborhood/receipt @ rev 7739

Added pre_install and post_remove to hd2u.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Dec 20 08:07:07 2010 +0000 (2010-12-20)
parents 17ad88488890
children 85df17f7d27a
rev   line source
paul@3859 1 # SliTaz package receipt.
paul@3859 2
paul@3859 3 PACKAGE="pyneighborhood"
slaxemulator@7703 4 VERSION="0.5.3"
paul@3859 5 CATEGORY="network"
paul@3859 6 SHORT_DESC="GUI frontend for samba tools (smbclient, smbmount, etc)."
paul@3859 7 MAINTAINER="paul@slitaz.org"
paul@4374 8 DEPENDS="python pygtk samba gettext libffi"
paul@3859 9 BUILD_DEPENDS="python python-dev"
paul@3859 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
paul@3859 11 WEB_SITE="https://launchpad.net/pyneighborhood"
slaxemulator@7703 12 WGET="$WEB_SITE/${VERSION%.*}/$VERSION/+download/$TARBALL"
paul@3859 13
paul@3859 14 # Rules to configure and make the package.
paul@3859 15 compile_rules()
paul@3859 16 {
slaxemulator@7703 17 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
slaxemulator@7703 18 tar xjf $SOURCES_REPOSITORY/$TARBALL
slaxemulator@7703 19 else
slaxemulator@7703 20 [ -L /usr/bin/wget ] || tazpkg get-install wget --forced
slaxemulator@7703 21 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
slaxemulator@7703 22 tar xjf $SOURCES_REPOSITORY/$TARBALL
slaxemulator@7703 23 fi
slaxemulator@7703 24
paul@3859 25 cd $src
paul@4374 26 # hack .desktop file
paul@4374 27 sed -i 's/Application;Network;System;Utility/Application;System;/' pyNeighborhood.desktop
paul@4374 28
paul@3859 29 python setup.py build &&
paul@3859 30 python setup.py install --root=$PWD/_pkg
paul@3859 31 }
paul@3859 32
paul@3859 33 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@3859 34 genpkg_rules()
paul@3859 35 {
paul@3859 36 mkdir -p $fs
paul@3859 37 cp -a $_pkg/usr $fs
paul@3859 38 }
paul@3859 39