fixes 2
This commit is contained in:
1 parent
873e396058
commit
fe7e3049a7
2 files changed
+24
-6
No files matched your search
@@ -1,16 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
name='cjs'
|
name='cjs'
|
||||||
release='1'
|
release='1'
|
||||||
version='5.6.1'
|
version='5.8.0'
|
||||||
url='https://github.com/linuxmint/cjs'
|
url='https://github.com/linuxmint/cjs'
|
||||||
description='Javascript Bindings for Cinnamon'
|
description='Javascript Bindings for Cinnamon'
|
||||||
email='akarsu@protonmail.com'
|
email='akarsu@protonmail.com'
|
||||||
maintainer='akarsu'
|
maintainer='akarsu'
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
source=("https://github.com/linuxmint/cjs/archive/refs/tags/${version}.tar.gz")
|
source=("https://github.com/linuxmint/cjs/archive/refs/tags/${version}.tar.gz")
|
||||||
depends=()
|
depends=(js102)
|
||||||
makedepends=()
|
makedepends=()
|
||||||
md5sums=('b9a3c85ed98be17bacfc591e809cbc10')
|
md5sums=('991e1bbf2ebf7cca4e93cfce66c4a876')
|
||||||
group=(gnome.extra)
|
group=(gnome.extra)
|
||||||
uses=()
|
uses=()
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name='mozjs102'
|
|||||||
release='1'
|
release='1'
|
||||||
version='102.12.0'
|
version='102.12.0'
|
||||||
url='https://spidermonkey.dev/'
|
url='https://spidermonkey.dev/'
|
||||||
description='JavaScript interpreter and libraries - Version 78'
|
description='JavaScript interpreter and libraries - Version 102'
|
||||||
email='akarsu@protonmail.com'
|
email='akarsu@protonmail.com'
|
||||||
maintainer='akarsu'
|
maintainer='akarsu'
|
||||||
license=('MPL')
|
license=('MPL')
|
||||||
@@ -18,8 +18,26 @@ arch=('x86_64')
|
|||||||
cd "mozjs-upstream"-$version
|
cd "mozjs-upstream"-$version
|
||||||
|
|
||||||
export MOZCONFIG=./mozconfig.opt
|
export MOZCONFIG=./mozconfig.opt
|
||||||
|
unset CARGO_PROFILE_RELEASE_OPT_LEVEL
|
||||||
package(){
|
unset CARGO_PROFILE_RELEASE_LTO
|
||||||
|
export CC=clang
|
||||||
|
export CXX=clang++
|
||||||
|
export CFLAGS="$CFLAGS -O2"
|
||||||
|
export CXXFLAGS="$CXXFLAGS -O2"
|
||||||
|
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
|
||||||
|
export MOZBUILD_STATE_PATH="$srcdir/mozbuild"
|
||||||
|
export MOZ_NOSPAM=1
|
||||||
|
export PYTHON=/usr/bin/python3
|
||||||
|
export RUST_TARGET="$CTARGET"
|
||||||
|
export SHELL=/bin/ash
|
||||||
|
export RUSTFLAGS="$RUSTFLAGS -C debuginfo=1"
|
||||||
|
|
||||||
|
build(){
|
||||||
./mach build --directory $DESTDIR
|
./mach build --directory $DESTDIR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
cd obj
|
||||||
|
make DESTDIR="$DESTDIR" install
|
||||||
|
rm -f "$DESTDIR"/usr/lib/*.ajs
|
||||||
|
}
|
||||||
Reference in new issue
Block a user