wok rev 11204

Add from wok-undigest: xbindkeys xfig xget xtel xv
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 03 10:47:24 2011 +0100 (2011-11-03)
parents bf4417b54ba9
children 0f920dfd9022
files xbindkeys/receipt xfig/receipt xget/receipt xtel/receipt xv/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xbindkeys/receipt	Thu Nov 03 10:47:24 2011 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="xbindkeys"
     1.7 +VERSION="1.8.3"
     1.8 +CATEGORY="x-window"
     1.9 +MAINTAINER="jozee@slitaz.org"
    1.10 +SHORT_DESC="Launch shell commands with your keyboard or your mouse under X"
    1.11 +BUILD_DEPENDS=" xorg-libX11-dev"
    1.12 +WEB_SITE="http://hocwp.free.fr/xbindkeys"
    1.13 +DEPENDS="xorg-libX11"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WGET_URL="$WEB_SITE/$TARBALL"
    1.16 +TAGS="keyboard"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +
    1.20 +compile_rules() {
    1.21 +  cd $src
    1.22 +  ./configure --prefix=/usr \
    1.23 +			--disable-tk \
    1.24 +			--disable-guile &&
    1.25 +  make &&
    1.26 +  make DESTDIR=$PWD/_pkg install 
    1.27 +}
    1.28 +	
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	mkdir -p $fs/usr 
    1.33 +	cp -a $_pkg/usr/bin $fs/usr	
    1.34 +
    1.35 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xfig/receipt	Thu Nov 03 10:47:24 2011 +0100
     2.3 @@ -0,0 +1,33 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="xfig"
     2.7 +VERSION="3.2.5b"
     2.8 +CATEGORY="x-window"
     2.9 +SHORT_DESC="Vector graphics editor for X."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +TARBALL="$PACKAGE.$VERSION.full.tar.gz"
    2.12 +WEB_SITE="http://www.xfig.org/"
    2.13 +WGET_URL="http://downloads.sourceforge.net/mcj/$TARBALL"
    2.14 +SUGGESTED="transfig"
    2.15 +
    2.16 +DEPENDS="jpeg libpng xorg xorg-libXp"
    2.17 +BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep jpeg-dev \
    2.18 +libpng-dev xorg-libXp"
    2.19 +
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	mv $PACKAGE.$VERSION $src 2> /dev/null
    2.24 +	cd $src
    2.25 +	sed -i 's|/usr/local|/usr|;s|#define XAW3D|XCOMM &|' Imakefile
    2.26 +	xmkmf &&
    2.27 +	make &&
    2.28 +	make DESTDIR=$DESTDIR install
    2.29 +}
    2.30 +
    2.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.32 +genpkg_rules()
    2.33 +{
    2.34 +	cp -a $_pkg/* $fs
    2.35 +	sed -i 's/^Fig\*Font:.*/Fig*Font:\t\t\tfixed/' $fs/etc/X11/app-defaults/Fig
    2.36 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/xget/receipt	Thu Nov 03 10:47:24 2011 +0100
     3.3 @@ -0,0 +1,29 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="xget"
     3.7 +SOURCE="xcpu"
     3.8 +VERSION="1.2.3"
     3.9 +CATEGORY="network"
    3.10 +SHORT_DESC="Scalable file-transfer agent."
    3.11 +MAINTAINER="pascal.bellard@slitaz.org"
    3.12 +TARBALL="${SOURCE}1-$VERSION.tar.gz"
    3.13 +WEB_SITE="http://xcpu.sourceforge.net/xget"
    3.14 +WGET_URL="$SF_MIRROR/xcpu/$VERSION/$TARBALL"
    3.15 +
    3.16 +DEPENDS=""
    3.17 +BUILD_DEPENDS="openssl-dev elfutils-dev"
    3.18 +
    3.19 +# Rules to configure and make the package.
    3.20 +compile_rules()
    3.21 +{
    3.22 +	cd $src
    3.23 +	make -j 1 &&
    3.24 +	make INSTALLPREFIX=$DESTDIR/usr install
    3.25 +}
    3.26 +
    3.27 +# Rules to gen a SliTaz package suitable for Tazpkg.   
    3.28 +genpkg_rules()                                      
    3.29 +{
    3.30 +	mkdir -p $fs/usr/sbin
    3.31 +	cp -a $_pkg/usr/sbin/xget $fs/usr/sbin
    3.32 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/xtel/receipt	Thu Nov 03 10:47:24 2011 +0100
     4.3 @@ -0,0 +1,65 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="xtel"
     4.7 +VERSION="3.3.0"
     4.8 +CATEGORY="network"
     4.9 +SHORT_DESC="X emulator of the French Minitel."
    4.10 +MAINTAINER="pascal.bellard@slitaz.org"
    4.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    4.12 +WEB_SITE="http://pficheux.free.fr/xtel/"
    4.13 +WGET_URL="${WEB_SITE}download/$TARBALL"
    4.14 +CONFIG_FILES="/etc/xtel"
    4.15 +
    4.16 +DEPENDS="ncurses-extra jpeg xorg-libXp xorg"
    4.17 +BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep xorg-xbitmaps \
    4.18 +xorg-libXp xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale"
    4.19 +
    4.20 +# Rules to configure and make the package.
    4.21 +compile_rules()
    4.22 +{
    4.23 +	cd $src &&
    4.24 +	sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \
    4.25 +		mdmdetect.c xteld.c Xsra/SelFile.c
    4.26 +	sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' xaw.c xm.c
    4.27 +	sed -i '/sys_nerr;/d;s/errno <= sys_nerr/1/' Xsra/SelFile.c
    4.28 +	sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' Xsra/SelFile.c
    4.29 +	sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \
    4.30 +		Imakefile */Imakefile
    4.31 +	xmkmf &&
    4.32 +	make -j 1 Xtel &&
    4.33 +	make all &&
    4.34 +	make DESTDIR=$DESTDIR install
    4.35 +}
    4.36 +
    4.37 +# Rules to gen a SliTaz package suitable for Tazpkg.   
    4.38 +genpkg_rules()                                      
    4.39 +{
    4.40 +	mkdir -p $fs/usr/share/fonts/X11
    4.41 +	cp -a $_pkg/* $fs/
    4.42 +	mv $fs/usr/lib/X11/xtel $fs/etc
    4.43 +	ln -s /etc/xtel $fs/usr/lib/X11
    4.44 +	sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' $fs/etc/ppp/ip*.iminitel
    4.45 +	sed -i 's|X11R6/||' $fs/usr/bin/make_xtel_lignes
    4.46 +	mv $fs/usr/lib/X11/fonts/* $fs/usr/share/fonts/X11
    4.47 +}
    4.48 +
    4.49 +# Pre and post install commands for Tazpkg.
    4.50 +post_install()
    4.51 +{
    4.52 +	grep -qs ^xtel $1/etc/services || cat >> $1/etc/services <<EOT
    4.53 +xtel		1313/tcp				# French minitel
    4.54 +EOT
    4.55 +	grep -qs ^xtel $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
    4.56 +xtel	stream	tcp	nowait	root	/usr/bin/xteld	xteld
    4.57 +EOT
    4.58 +	chroot "$1/" /usr/bin/install_iminitel
    4.59 +	if [ -z "$1" ]; then
    4.60 +		/etc/init.d/inetd stop
    4.61 +		/etc/init.d/inetd start
    4.62 +	fi
    4.63 +	cat <<EOT
    4.64 +	
    4.65 +You should launch /usr/bin/make_xtel_lignes now.
    4.66 +
    4.67 +EOT
    4.68 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/xv/receipt	Thu Nov 03 10:47:24 2011 +0100
     5.3 @@ -0,0 +1,59 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="xv"
     5.7 +VERSION="3.10a"
     5.8 +CATEGORY="non-free"
     5.9 +SHORT_DESC="Interactive image manipulation program for the X Window System."
    5.10 +MAINTAINER="pascal.bellard@slitaz.org"
    5.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.12 +WEB_SITE="http://www.trilon.com/xv/xv.html"
    5.13 +WGET_URL="ftp://ftp.trilon.com/pub/$PACKAGE/$TARBALL"
    5.14 +PATCH1="$SF_MIRROR/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz"
    5.15 +PATCH2="http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff"
    5.16 +
    5.17 +DEPENDS="xorg"
    5.18 +BUILD_DEPENDS="xorg-dev"
    5.19 +
    5.20 +# Rules to configure and make the package.
    5.21 +compile_rules()
    5.22 +{
    5.23 +	cd $src
    5.24 +	for i in $PATCH1 $PATCH2 ; do
    5.25 +		[ -s $SOURCES_REPOSITORY/$(basename $i) ] || 
    5.26 +		wget -P $SOURCES_REPOSITORY $i
    5.27 +	done
    5.28 +	cd .. ; tar xzf $SOURCES_REPOSITORY/$(basename $PATCH1) ; cd $src
    5.29 +	#patch -p0 < $SOURCES_REPOSITORY/$(basename $PATCH2)
    5.30 +	sed -i 's/.*stdio.*/&\n#include <stdlib.h>/' xcmap.c bggen.c
    5.31 +	sed -i 's/ gets *(\(.*\))/ fgets(\1,sizeof(\1)-1,stdin)/' vdcomp.c
    5.32 +	sed -i 's/mktemp/mkstemp/' *.c
    5.33 +	cat > tiff/RANLIB.csh <<EOT
    5.34 +#!/bin/sh
    5.35 +exec ranlib \$@
    5.36 +EOT
    5.37 +	chmod +x tiff/RANLIB.csh
    5.38 +	sed -i 's|.*extern.*sys_errlist.*|//&|;s|sys_errlist.x.|strerror(x)|' xv.h
    5.39 +	sed -i -e 's|undef USE_GUNZIP|define USE_GUNZIP\n#define USE_GETCWD|' \
    5.40 +		-e 's|/usr/local/bin/gunzip -q|/bin/gunzip|' config.h
    5.41 +	make jpeg/libjpeg.a &&
    5.42 +	make
    5.43 +}
    5.44 +
    5.45 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.46 +genpkg_rules()
    5.47 +{
    5.48 +	mkdir -p $fs/usr/bin $fs/usr/share/doc/slitaz $fs/usr/share/applications
    5.49 +	cp $src/xv $src/bggen $src/vdcomp $src/xcmap $src/xvpictoppm $fs/usr/bin
    5.50 +	cp $src/README $fs/usr/share/doc/slitaz/README.xv
    5.51 +	cat > $fs/usr/share/applications/xv.desktop <<EOT
    5.52 +[Desktop Entry]
    5.53 +Encoding=UTF-8
    5.54 +Categories=Application;Graphics;Utility
    5.55 +Exec=xv %f
    5.56 +Icon=image
    5.57 +StartupNotify=true
    5.58 +Type=Application
    5.59 +Terminal=false
    5.60 +Name=Image manipulation
    5.61 +EOT
    5.62 +}