new blfs: dev-lang/duktape-2.7.0
This commit is contained in:
@@ -18,7 +18,7 @@ Warning: `leaf` won't deal with the dependence relation, and currently won't che
|
|||||||
|
|
||||||
Those can be installed directly:
|
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`
|
- `dev-libs/libunistring` -> `net-dns/libidn2` -> `net-libs/libpsl` -> `net-misc/wget`
|
||||||
|
|||||||
23
dev-lang/duktape-2.7.0.PKGBUILD
Normal file
23
dev-lang/duktape-2.7.0.PKGBUILD
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user