wok view quickjs/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 (2 months ago)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="quickjs"
4 VERSION="2024-01-13"
5 CATEGORY="development"
6 TAGS="javascript"
7 SHORT_DESC="Small and embeddable Javascript engine."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://bellard.org/quickjs/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://bellard.org/$PACKAGE/$TARBALL"
15 DEPENDS="gcc83-lib-base libatomic"
16 BUILD_DEPENDS="gcc83 libatomic"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null |
22 sed '/tar.xz/!d;s|.tar.xz.*||;s|.*quickjs-||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 make \
29 PREFIX=/usr \
30 VERSION=$VERSION \
31 CONFIG_SHARED_LIBS=y \
32 CC=gcc-83 \
33 AR=gcc-ar-83 \
34 EXTRA_LIBS="-lrt -latomic" &&
35 make install \
36 PREFIX=/usr
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/licenses
44 cook_copy_folders bin
45 cp $src/LICENSE $fs/usr/share/licenses/LICENCE.$PACKAGE
46 }