wok rev 25774

created recipes for quickjs, quickjs-dev and edbrowse
author Hans-G?nter Theisgen
date Sat Sep 14 16:50:20 2024 +0100 (2 months ago)
parents cc893214701f
children 05dca430ef91
files edbrowse/description.txt edbrowse/receipt edbrowse/stuff/patches/src_makefile-3.8.10 quickjs-dev/receipt quickjs/description.txt quickjs/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/edbrowse/description.txt	Sat Sep 14 16:50:20 2024 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +Edbrowse is a combination editor, browser, and mail client that is 100% text based.
     1.5 +The interface is similar to /bin/ed, though there are many more features, such as
     1.6 +editing multiple files simultaneously, and rendering html.
     1.7 +This program was originally written for blind users, but many sighted users have
     1.8 +taken advantage of the unique scripting capabilities of this program, which can be
     1.9 +found nowhere else.
    1.10 +A batch job, or cron job, can access web pages on the internet, submit forms,
    1.11 +and send email, with no human intervention whatsoever.
    1.12 +edbrowse can also tap into databases through odbc.
    1.13 +It was primarily written by Karl Dahlke.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/edbrowse/receipt	Sat Sep 14 16:50:20 2024 +0100
     2.3 @@ -0,0 +1,47 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="edbrowse"
     2.7 +VERSION="3.8.10"
     2.8 +CATEGORY="network"
     2.9 +TAGS="javascript web-browser"
    2.10 +SHORT_DESC="Line-oriented editor, web browser, and mail client"
    2.11 +MAINTAINER="maintainer@slitaz.org"
    2.12 +LICENSE="GPL-2.0-or-later"
    2.13 +WEB_SITE="https://edbrowse.org/"
    2.14 +
    2.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.16 +WGET_URL="https://github.com/CMB/$PACKAGE/archive/v$VERSION/$PACKAGE-$VERSION.tar.gz"
    2.17 +
    2.18 +DEPENDS="libatomic libcrypto libcurl libssl libunixODBC pcre2 readline"
    2.19 +BUILD_DEPENDS="curl-dev openssl-dev pcre2-dev perl quickjs-dev readline-dev
    2.20 +	unixODBC-dev"
    2.21 +
    2.22 +# What is the latest version available today?
    2.23 +current_version()
    2.24 +{
    2.25 +	wget -O - https://github.com/CMB/edbrowse/tags 2>/dev/null |
    2.26 +	sed	 '/releases/!d;/<h2/!d;s|.*/tag/||;s|".*||;q'
    2.27 +}
    2.28 +
    2.29 +# Rules to configure and make the package.
    2.30 +compile_rules()
    2.31 +{
    2.32 +	patch	--strip=0 --input=$stuff/patches/src_makefile-3.8.10 &&
    2.33 +
    2.34 +	make						\
    2.35 +		QUICKJS_INCLUDE="/usr/include/quickjs"	\
    2.36 +		QUICKJS_LIB="/usr/lib/quickjs"		\
    2.37 +		PREFIX=/usr &&
    2.38 +	cd	src &&
    2.39 +	make	install	\
    2.40 +		PREFIX=/usr
    2.41 +}
    2.42 +
    2.43 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.44 +genpkg_rules()
    2.45 +{
    2.46 +	mkdir -p		$fs/usr/share/licenses
    2.47 +
    2.48 +	cook_copy_folders	bin
    2.49 +	cp	$src/COPYING	$fs/usr/share/licenses/LICENCE.$PACKAGE
    2.50 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/edbrowse/stuff/patches/src_makefile-3.8.10	Sat Sep 14 16:50:20 2024 +0100
     3.3 @@ -0,0 +1,11 @@
     3.4 +--- src/makefile
     3.5 ++++ src/makefile.mod
     3.6 +@@ -43,7 +43,7 @@
     3.7 + endif
     3.8 + LDFLAGS += $(QUICKJS_LDFLAGS)
     3.9 + #  and the other loader flags
    3.10 +-LDFLAGS += $(STRIP) $(LINKER_LIBS) -lpthread -lm -lssl -lcrypto
    3.11 ++LDFLAGS += $(STRIP) $(LINKER_LIBS) -lpthread -lm -lssl -lcrypto -lreadline -lrt -ltinfo
    3.12 + 
    3.13 + #  ESQL C load flags
    3.14 + #ESQLDFLAGS = $(STRIP) -Xlinker -rpath -Xlinker $(INFORMIXDIR)/lib:$(INFORMIXDIR)/lib/esql
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/quickjs-dev/receipt	Sat Sep 14 16:50:20 2024 +0100
     4.3 @@ -0,0 +1,19 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="quickjs-dev"
     4.7 +VERSION="2024-01-13"
     4.8 +CATEGORY="development"
     4.9 +SHORT_DESC="Small and embeddable Javascript engine - development files."
    4.10 +MAINTAINER="maintainer@slitaz.org"
    4.11 +LICENSE="MIT"
    4.12 +WEB_SITE="https://bellard.org/quickjs/"
    4.13 +
    4.14 +DEPENDS="pkg-config"
    4.15 +WANTED="quickjs"
    4.16 +
    4.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.18 +genpkg_rules()
    4.19 +{
    4.20 +	cook_copy_folders	include
    4.21 +	cook_copy_files		*.a
    4.22 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/quickjs/description.txt	Sat Sep 14 16:50:20 2024 +0100
     5.3 @@ -0,0 +1,3 @@
     5.4 +QuickJS is a small and embeddable Javascript engine.
     5.5 +It supports the ES2023 specification including modules,
     5.6 +asynchronous generators, proxies and BigInt.
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/quickjs/receipt	Sat Sep 14 16:50:20 2024 +0100
     6.3 @@ -0,0 +1,46 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKAGE="quickjs"
     6.7 +VERSION="2024-01-13"
     6.8 +CATEGORY="development"
     6.9 +TAGS="javascript"
    6.10 +SHORT_DESC="Small and embeddable Javascript engine."
    6.11 +MAINTAINER="maintainer@slitaz.org"
    6.12 +LICENSE="MIT"
    6.13 +WEB_SITE="https://bellard.org/quickjs/"
    6.14 +
    6.15 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    6.16 +WGET_URL="https://bellard.org/$PACKAGE/$TARBALL"
    6.17 +
    6.18 +DEPENDS="gcc83-lib-base libatomic"
    6.19 +BUILD_DEPENDS="gcc83 libatomic"
    6.20 +
    6.21 +# What is the latest version available today?
    6.22 +current_version()
    6.23 +{
    6.24 +	wget -O - $WEB_SITE 2>/dev/null |
    6.25 +	sed '/tar.xz/!d;s|.tar.xz.*||;s|.*quickjs-||;q'
    6.26 +}
    6.27 +
    6.28 +# Rules to configure and make the package.
    6.29 +compile_rules()
    6.30 +{
    6.31 +	make				\
    6.32 +		PREFIX=/usr		\
    6.33 +		VERSION=$VERSION	\
    6.34 +		CONFIG_SHARED_LIBS=y	\
    6.35 +		CC=gcc-83		\
    6.36 +		AR=gcc-ar-83		\
    6.37 +		EXTRA_LIBS="-lrt -latomic" &&
    6.38 +	make	install			\
    6.39 +		PREFIX=/usr
    6.40 +}
    6.41 +
    6.42 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.43 +genpkg_rules()
    6.44 +{
    6.45 +	mkdir -p		$fs/usr/share/licenses
    6.46 +
    6.47 +	cook_copy_folders	bin
    6.48 +	cp	$src/LICENSE	$fs/usr/share/licenses/LICENCE.$PACKAGE
    6.49 +}