wok rev 14444

Add coccinella
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 26 16:54:00 2013 +0200 (2013-04-26)
parents cb9ac999a97d
children 42dd7a1d7f36
files coccinella/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/coccinella/receipt	Fri Apr 26 16:54:00 2013 +0200
     1.3 @@ -0,0 +1,33 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="coccinella"
     1.7 +SOURCE="Coccinella"
     1.8 +VERSION="0.96.20"
     1.9 +CATEGORY="network"
    1.10 +SHORT_DESC="Cross-platform communication tool with a built-in whiteboard."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +WEB_SITE="http://thecoccinella.org/"
    1.13 +TARBALL="$SOURCE-${VERSION}Src.tar.gz"
    1.14 +WGET_URL="$SF_MIRROR/project/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
    1.15 +
    1.16 +DEPENDS="tk"
    1.17 +BUILD_DEPENDS=""
    1.18 +
    1.19 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.20 +genpkg_rules()
    1.21 +{
    1.22 +	mkdir -p $fs/usr/bin $fs/usr/share
    1.23 +	cp -a $src $fs/usr/share/coccinella
    1.24 +	rm -rf $fs/usr/share/coccinella/bin/macosx
    1.25 +	rm -rf $fs/usr/share/coccinella/bin/unix/NetBSD
    1.26 +	rm -rf $fs/usr/share/coccinella/bin/windows
    1.27 +	cat > $fs/usr/bin/coccinella << EOT
    1.28 +#!/bin/sh
    1.29 +
    1.30 +cd /usr/share/coccinella && {
    1.31 +	wish8.5 ./Coccinella.tcl "$@"
    1.32 +	cd -
    1.33 +}
    1.34 +EOT
    1.35 +	chmod +x $fs/usr/bin/coccinella
    1.36 +}