mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/gjs to 1.70.0-3
This commit is contained in:
parent
007f485db8
commit
559465e0cc
1 changed files with 10 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue