wok-stable diff novnc/receipt @ rev 11387

Compat: remove gtk+ from poppler DEPENDS to solve a build dependency loop
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 04:46:32 2011 +0100 (2011-12-10)
parents
children c380532e1854
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/novnc/receipt	Sat Dec 10 04:46:32 2011 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="novnc"
     1.7 +VERSION="20110901"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="VNC client in javascript."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://github.com/kanaka/noVNC"
    1.12 +_TARBALL="$PACKAGE-$VERSION.tgz"
    1.13 +
    1.14 +DEPENDS="python python-numpy"
    1.15 +BUILD_DEPENDS="wget python python-pil openssl"
    1.16 +SUGGESTED="pyopenssl openssl"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	[ -s $SOURCES_REPOSITORY/$_TARBALL ] ||
    1.22 +	   wget -O $SOURCES_REPOSITORY/$_TARBALL \
    1.23 +	     $WEB_SITE/tarball/7b10dc8a485079fdc34847140fb0c993265e3a1e
    1.24 +	mkdir -p $src
    1.25 +	cd $src
    1.26 +	tar xzf $SOURCES_REPOSITORY/$_TARBALL
    1.27 +	mkdir -p $DESTDIR
    1.28 +	cd kanaka*
    1.29 +	sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
    1.30 +	IMAGE=/usr/share/images/slitaz-background.jpg
    1.31 +	[ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
    1.32 +	cp -a *.html images/favicon.ico utils include $DESTDIR
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +	mkdir -p $fs/usr/share/novnc
    1.39 +	cp -a $_pkg/* $fs/usr/share/novnc
    1.40 +}
    1.41 +
    1.42 +port_install()
    1.43 +{
    1.44 +	which openssl > /dev/null &&
    1.45 +	openssl req -new -x509 -keyout $1/usr/share/novnc/self.pem \
    1.46 +		-out $1/usr/share/novnc/self.pem -days 3650 -nodes <<EOT
    1.47 +$(. /etc/locale.conf ; echo ${LANG#*_})
    1.48 +$(cat /etc/TZ)
    1.49 +
    1.50 +$(cat /etc/hostname)
    1.51 +
    1.52 +
    1.53 +
    1.54 +EOT
    1.55 +}