]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
duktape: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Jan 2023 13:35:52 +0000 (13:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Jan 2023 13:35:52 +0000 (13:35 +0000)
Required by polkit.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
duktape/duktape.nm [new file with mode: 0644]

diff --git a/duktape/duktape.nm b/duktape/duktape.nm
new file mode 100644 (file)
index 0000000..e8ca760
--- /dev/null
@@ -0,0 +1,45 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = duktape
+version    = 2.7.0
+release    = 1
+
+groups     = System/Libraries
+url        = https://duktape.org/
+license    = MIT
+summary    = Embeddable Javascript engine
+
+description
+       Duktape is an embeddable Javascript engine, with a focus on
+       portability and compact footprint.
+end
+
+source_dl  = https://duktape.org/
+sources    = %{thisapp}.tar.xz
+
+build
+       make = make -f Makefile.sharedlibrary INSTALL_PREFIX=%{prefix} LIBDIR=/%{lib}
+
+       build
+               %{make} %{PARALLELISMFLAGS}
+       end
+
+       install
+               %{make} install DESTDIR=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end