PKGBUILDs/extra/gjs/PKGBUILD

47 lines
1 KiB
Bash
Raw Normal View History

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-10-06 16:24:59 +00:00
pkgver=1.50.1
2017-05-06 17:23:18 +00:00
pkgrel=1
pkgdesc="Javascript Bindings for GNOME"
url="https://wiki.gnome.org/Projects/Gjs"
arch=(i686 x86_64)
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)
_commit=b1b7b14bd54e108fde97eea9247e2636c8d760cf # tags/1.50.1^0
2017-05-06 17:23:18 +00:00
source=("git+https://git.gnome.org/browse/gjs#commit=$_commit")
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-10-06 16:24:59 +00:00
make check
2017-05-06 17:23:18 +00:00
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}