2017-05-06 17:23:18 +00:00
|
|
|
# $Id$
|
|
|
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - configure with --enable-compile-warnings=no
|
|
|
|
|
|
|
|
pkgname=gjs
|
2017-12-10 04:45:23 +00:00
|
|
|
pkgver=1.50.2
|
2017-05-06 17:23:18 +00:00
|
|
|
pkgrel=1
|
2017-12-10 04:45:23 +00:00
|
|
|
epoch=1
|
2017-05-06 17:23:18 +00:00
|
|
|
pkgdesc="Javascript Bindings for GNOME"
|
|
|
|
url="https://wiki.gnome.org/Projects/Gjs"
|
2017-11-19 01:45:06 +00:00
|
|
|
arch=(x86_64)
|
2017-05-06 17:23:18 +00:00
|
|
|
license=(GPL)
|
2017-10-06 16:24:59 +00:00
|
|
|
depends=(cairo gobject-introspection-runtime js52 gtk3)
|
|
|
|
makedepends=(gobject-introspection git autoconf-archive xorg-server-xvfb)
|
|
|
|
checkdepends=(valgrind)
|
2017-12-10 04:45:23 +00:00
|
|
|
_commit=9a97b89ac410091466961d8430ff4da399b83bbe # tags/1.50.2^0
|
2017-11-19 01:45:06 +00:00
|
|
|
source=("git+https://gitlab.gnome.org/GNOME/gjs.git#commit=$_commit")
|
2017-05-06 17:23:18 +00:00
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
git describe --tags | sed 's/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname
|
2017-10-06 16:24:59 +00:00
|
|
|
./configure --prefix=/usr --disable-static --libexecdir=/usr/lib --with-xvfb-tests --enable-compile-warnings=no
|
2017-05-06 17:23:18 +00:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname
|
2017-12-07 13:52:06 +00:00
|
|
|
make -j1 check
|
2017-05-06 17:23:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|