new blfs: dev-lang/duktape-2.7.0

This commit is contained in:
2025-12-27 12:24:08 -05:00
parent e08e2ae5af
commit d53e815de9
2 changed files with 24 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ Warning: `leaf` won't deal with the dependence relation, and currently won't che
Those can be installed directly:
```
dev-libs/libunistring dev-libs/popt dev-libs/libtasn1 app-arch/libarchive dev-libs/xxhash dev-libs/pcre2
dev-libs/libunistring dev-libs/popt dev-libs/libtasn1 app-arch/libarchive dev-libs/xxhash dev-libs/pcre2 dev-lang/duktape
```
- `dev-libs/libunistring` -> `net-dns/libidn2` -> `net-libs/libpsl` -> `net-misc/wget`

View File

@@ -0,0 +1,23 @@
pkgname=duktape
pkgver=2.7.0
pkgdesc='Embeddable Javascript engine'
homepage='https://duktape.org/'
arch=(x86_64)
license=(MIT)
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("${homepage}${sources[0]}")
md5sums=("b3200b02ab80125b694bae887d7c1ca6")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
sed -i 's/-Os/-O2/' Makefile.sharedlibrary
}
src_build() {
make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr
}
src_install() {
make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr DESTDIR="$pkgdir" install
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt
}