wok rev 19543

retawq: rework receipt; add cryptkeeper.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 05 20:07:13 2016 +0200 (2016-12-05)
parents 1feee7ca564d
children 12f827acfc48
files cryptkeeper/receipt cryptkeeper/stuff/cryptkeeper.patch retawq/description.txt retawq/receipt retawq/stuff/retawq.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cryptkeeper/receipt	Mon Dec 05 20:07:13 2016 +0200
     1.3 @@ -0,0 +1,30 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="cryptkeeper"
     1.7 +VERSION="0.9.5"
     1.8 +CATEGORY="security"
     1.9 +SHORT_DESC="Linux system tray applet that manages EncFS encrypted folders"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="GPL3"
    1.12 +WEB_SITE="http://tom.noflag.org.uk/cryptkeeper.html"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WGET_URL="http://tom.noflag.org.uk/cryptkeeper/$TARBALL"
    1.15 +
    1.16 +DEPENDS="gtk+ GConf encfs"
    1.17 +BUILD_DEPENDS="gtk+-dev GConf-dev xorg-libX11-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	mv po/ru_RU.gmo po/ru.gmo
    1.23 +	patch -p1 -i $stuff/cryptkeeper.patch
    1.24 +	export LDFLAGS="-lX11"
    1.25 +
    1.26 +	./configure $CONFIGURE_ARGS && make && make install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	cook_copy_folders usr
    1.33 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cryptkeeper/stuff/cryptkeeper.patch	Mon Dec 05 20:07:13 2016 +0200
     2.3 @@ -0,0 +1,29 @@
     2.4 +--- a/src/defines.h
     2.5 ++++ b/src/defines.h
     2.6 +@@ -4,7 +4,7 @@
     2.7 + #define UI_SPACING	5
     2.8 + #define UI_WINDOW_BORDER	10
     2.9 + 
    2.10 +-#define DEFAULT_FILEMANAGER	"nautilus"
    2.11 ++#define DEFAULT_FILEMANAGER	"pcmanfm"
    2.12 + 
    2.13 + #include "../config.h"
    2.14 + #include "../lib/gettext.h"
    2.15 +
    2.16 +--- a/po/LINGUAS
    2.17 ++++ b.po/LINGUAS
    2.18 +@@ -1 +1 @@
    2.19 +-en@quot en@boldquot fr en_GB de_DE pt_BR ru_RU tr pl es_ES it
    2.20 ++en@quot en@boldquot fr en_GB de_DE pt_BR ru tr pl es_ES it
    2.21 +
    2.22 +--- a/cryptkeeper.desktop
    2.23 ++++ b/cryptkeeper.desktop
    2.24 +@@ -3,7 +3,7 @@
    2.25 + Name=Cryptkeeper
    2.26 + Exec=cryptkeeper
    2.27 + Icon=cryptkeeper
    2.28 +-Categories=Application;System;
    2.29 ++Categories=Application;System;Security;
    2.30 + Terminal=false
    2.31 + Type=Application
    2.32 + StartupNotify=false
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/retawq/description.txt	Mon Dec 05 20:07:13 2016 +0200
     3.3 @@ -0,0 +1,6 @@
     3.4 +`retawq` is an interactive, multi-threaded network client (web browser) for
     3.5 +text terminals on computers with Unix-like operating systems. It is written in
     3.6 +C, fast, small, nicely configurable, and comfortable; e.g. the low-level
     3.7 +network communications are performed in a non-blocking way, and you can keep
     3.8 +open as many "virtual windows" as you want and work simultaneously in two of
     3.9 +them in a split-screen mode.
     4.1 --- a/retawq/receipt	Mon Dec 05 15:16:10 2016 +0200
     4.2 +++ b/retawq/receipt	Mon Dec 05 20:07:13 2016 +0200
     4.3 @@ -3,37 +3,43 @@
     4.4  PACKAGE="retawq"
     4.5  VERSION="0.2.6c"
     4.6  CATEGORY="network"
     4.7 -SHORT_DESC="Text mode Web browser."
     4.8 +SHORT_DESC="Multi-threaded web browser for text terminals"
     4.9  MAINTAINER="pankso@slitaz.org"
    4.10  LICENSE="GPL2"
    4.11 +WEB_SITE="http://retawq.sourceforge.net/"
    4.12  TARBALL="$PACKAGE-$VERSION.tar.gz"
    4.13 -WEB_SITE="http://retawq.sourceforge.net/"
    4.14  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    4.15  TAGS="web-browser"
    4.16  HOST_ARCH="i486 arm"
    4.17  
    4.18 -DEPENDS="ncurses"
    4.19 -BUILD_DEPENDS="ncurses-dev"
    4.20 +DEPENDS="ncurses libtinfo"
    4.21 +BUILD_DEPENDS="ncurses-dev libtinfo"
    4.22  
    4.23  # Rules to configure and make the package.
    4.24  compile_rules()
    4.25  {
    4.26 -	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
    4.27 +	export LDFLAGS="-ltinfo"
    4.28  	# We have no locale support on ARM actually
    4.29  	case "$ARCH" in
    4.30 -		arm) opts="" ;;
    4.31 +		arm)  opts="" ;;
    4.32  		i?86) opts="--enable-i18n" ;;
    4.33  	esac
    4.34 -	cd $src
    4.35 +	patch -p1 -i $stuff/retawq.patch
    4.36 +
    4.37  	./configure \
    4.38  		--enable-local-cgi \
    4.39  		--path-prefix=/usr \
    4.40  		--path-doc=/usr/share/doc/retawq \
    4.41 -		--path-man=/usr/share/man $opts &&
    4.42 -	make
    4.43 +		--path-man=/usr/share/man \
    4.44 +		$opts &&
    4.45 +	make && make install
    4.46 +
    4.47 +	mkdir -p $install/usr/share/applications $install/etc
    4.48 +	cp $stuff/retawq.desktop $install/usr/share/applications
    4.49 +	cp -a $stuff/skel $install/etc
    4.50  }
    4.51  
    4.52 -# The base webbrows for ARM, so check
    4.53 +# The base web browser for ARM, so check
    4.54  testsuite()
    4.55  {
    4.56  	readelf -h $src/retawq
    4.57 @@ -42,13 +48,5 @@
    4.58  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.59  genpkg_rules()
    4.60  {
    4.61 -	mkdir -p $fs/etc $fs/usr/bin
    4.62 -	cp -a $src/retawq $fs/usr/bin
    4.63 -	cp -a $stuff/skel $fs/etc
    4.64 -	# I18n for locale-* packages
    4.65 -	for lang in de es fr ja pt_BR; do
    4.66 -		mkdir -p $install/usr/share/locale/$lang/LC_MESSAGES
    4.67 -		cp $src/i18n/$lang.mo \
    4.68 -			$install/usr/share/locale/$lang/LC_MESSAGES/retawq.mo
    4.69 -	done
    4.70 +	cook_copy_folders bin skel
    4.71  }
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/retawq/stuff/retawq.patch	Mon Dec 05 20:07:13 2016 +0200
     5.3 @@ -0,0 +1,18 @@
     5.4 +--- a/configure
     5.5 ++++ b/configure
     5.6 +@@ -1660,13 +1660,13 @@
     5.7 +   initial_path="\$4"
     5.8 +   files="\$5"
     5.9 +   act="\${ITCHCONFIG_ACT-}"
    5.10 +-  ic_makedir="\${MKDIRPROG-mkdir}"
    5.11 ++  ic_makedir="mkdir -p"
    5.12 +   ic_program_prefix="$ic_program_prefix"
    5.13 +   ic_program_suffix="$ic_program_suffix"
    5.14 +   checked_path=
    5.15 +   for one_file in \$files
    5.16 +   do
    5.17 +-    path="\$initial_path"
    5.18 ++    path="\$DESTDIR\$initial_path"
    5.19 +     file=\`echo "\$one_file" | sed 's,.*[/],,'\`
    5.20 +     case \$magic in
    5.21 +     m0) ;;