mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
57 lines
1.3 KiB
Bash
57 lines
1.3 KiB
Bash
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - configure with --enable-compile-warnings=no
|
|
|
|
pkgname=gjs
|
|
pkgver=1.54.2
|
|
pkgrel=1
|
|
epoch=2
|
|
pkgdesc="Javascript Bindings for GNOME"
|
|
url="https://wiki.gnome.org/Projects/Gjs"
|
|
arch=(x86_64)
|
|
license=(GPL)
|
|
depends=(cairo gobject-introspection-runtime js60 gtk3)
|
|
makedepends=(gobject-introspection git autoconf-archive xorg-server-xvfb)
|
|
checkdepends=(valgrind)
|
|
_commit=4e81717703b3ebf0b8e85b7f286f92fa4103eacd # tags/1.54.2^0
|
|
source=("git+https://gitlab.gnome.org/GNOME/gjs.git#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
|
|
# We don't have C.UTF-8
|
|
sed -i 's|C\.UTF-8|en_US.UTF-8|g' Makefile-test.am test/test-ci.sh
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
--disable-static \
|
|
--enable-compile-warnings=yes \
|
|
--with-xvfb-tests \
|
|
--enable-compile-warnings=no
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
make -j1 check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR="$pkgdir" install
|
|
}
|