extra/gjs to 1.70.0-3

This commit is contained in:
Kevin Mihelich 2022-01-12 00:18:06 +00:00
parent 007f485db8
commit 559465e0cc

View file

@ -6,7 +6,7 @@
pkgname=gjs
pkgver=1.70.0
pkgrel=2
pkgrel=3
epoch=2
pkgdesc="Javascript Bindings for GNOME"
url="https://wiki.gnome.org/Projects/Gjs"
@ -24,19 +24,21 @@ sha256sums=('SKIP'
'fcfcc02a65b3917fbdf7ded5ee294ff5fc71225ffe720e42ca0257c7cb14eada')
pkgver() {
cd $pkgname
cd gjs
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgname
cd gjs
patch -p1 -i ../build-Link-with-libatomic-if-necessary.patch
}
build() {
arch-meson $pkgname build \
--buildtype release \
-D installed_tests=false
CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
CXXFLAGS="${CXXFLAGS/-O2/-O3} -fno-semantic-interposition"
LDFLAGS+=" -Wl,-Bsymbolic-functions"
arch-meson gjs build -D installed_tests=false
meson compile -C build
}
@ -49,3 +51,5 @@ package() {
depends+=(libreadline.so)
meson install -C build --destdir "$pkgdir"
}
# vim:set sw=2 et: