wok view edbrowse/receipt @ rev 25774
created recipes for quickjs, quickjs-dev and edbrowse
author | Hans-G?nter Theisgen |
---|---|
date | Sat Sep 14 16:50:20 2024 +0100 (8 weeks ago) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="edbrowse"
4 VERSION="3.8.10"
5 CATEGORY="network"
6 TAGS="javascript web-browser"
7 SHORT_DESC="Line-oriented editor, web browser, and mail client"
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL-2.0-or-later"
10 WEB_SITE="https://edbrowse.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/CMB/$PACKAGE/archive/v$VERSION/$PACKAGE-$VERSION.tar.gz"
15 DEPENDS="libatomic libcrypto libcurl libssl libunixODBC pcre2 readline"
16 BUILD_DEPENDS="curl-dev openssl-dev pcre2-dev perl quickjs-dev readline-dev
17 unixODBC-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/CMB/edbrowse/tags 2>/dev/null |
23 sed '/releases/!d;/<h2/!d;s|.*/tag/||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 patch --strip=0 --input=$stuff/patches/src_makefile-3.8.10 &&
31 make \
32 QUICKJS_INCLUDE="/usr/include/quickjs" \
33 QUICKJS_LIB="/usr/lib/quickjs" \
34 PREFIX=/usr &&
35 cd src &&
36 make install \
37 PREFIX=/usr
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/licenses
45 cook_copy_folders bin
46 cp $src/COPYING $fs/usr/share/licenses/LICENCE.$PACKAGE
47 }