PKGBUILDs/extra/gjs/PKGBUILD

47 lines
1,007 B
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-07-28 12:19:30 +00:00
pkgver=1.48.6
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)
depends=(cairo gobject-introspection-runtime js38 gtk3)
makedepends=(gobject-introspection git gnome-common)
2017-07-28 12:19:30 +00:00
_commit=a9db649304db525ca166ec0845ee7a86cea4bf7f # tags/1.48.6^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
./configure --prefix=/usr --disable-static --libexecdir=/usr/lib --enable-compile-warnings=no
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname
# Needs a display
make -k check || :
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}