mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-17 10:36:22 +02:00
65 lines
1.6 KiB
Plaintext
65 lines
1.6 KiB
Plaintext
maintainer="Achill Gilgenast <achill@achill.org>"
|
|
pkgname=cjs
|
|
pkgver=128.1
|
|
pkgrel=0
|
|
pkgdesc="Cinnamon javascript library (fork of gjs)"
|
|
url="https://github.com/linuxmint/cjs"
|
|
# armhf blocked by mozjs
|
|
arch="all !armhf"
|
|
license="MIT AND LGPL-2.0-or-later"
|
|
makedepends="
|
|
cairo-dev
|
|
clang
|
|
dbus
|
|
gobject-introspection-dev
|
|
gtk+3.0-dev
|
|
libffi
|
|
lld
|
|
meson
|
|
mozjs-dev
|
|
"
|
|
checkdepends="xvfb-run"
|
|
subpackages="$pkgname-dev $pkgname-dbg"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/cjs/archive/refs/tags/$pkgver.tar.gz
|
|
https://dev.alpinelinux.org/~achill/cjs-mozjs140.patch
|
|
"
|
|
options="$options !check" # https://gitlab.gnome.org/GNOME/gjs/-/issues/681#note_2382535
|
|
|
|
build() {
|
|
case "$CARCH" in
|
|
aarch64|arm*|riscv64|loongarch64)
|
|
# not supported by clang here
|
|
export CFLAGS="${CFLAGS/-fstack-clash-protection}"
|
|
export CXXFLAGS="${CXXFLAGS/-fstack-clash-protection}"
|
|
;;
|
|
esac
|
|
|
|
CC=clang \
|
|
CXX=clang++ \
|
|
CFLAGS="$CFLAGS -O2" \
|
|
CXXFLAGS="$CXXFLAGS -O2" \
|
|
LDFLAGS="$LDFLAGS -fuse-ld=lld" \
|
|
abuild-meson \
|
|
--buildtype=release \
|
|
-Db_lto=true \
|
|
-Db_ndebug=true \
|
|
-Dprofiler=disabled \
|
|
-Dinstalled_tests=false \
|
|
output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
# Tests can take a while on armv7
|
|
xvfb-run -a meson test --print-errorlogs -C output -t 10
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
41aff6bfbd64cec59a64eb49c8913637dd0a482316e6b138f3e3ebef071d2668847f0988d2c6bedd7eec394f538c78683d4c9aacb81f95d198722a0e597611aa cjs-128.1.tar.gz
|
|
c6a4eb65406d57341f13175d490215f56fce47e2cc1363edbe125142774febb4163571a7c5e2716b9419e55831c7dc98a023bee3d8775c7a4dd3a5246babc828 cjs-mozjs140.patch
|
|
"
|