From c10917783d432c6a847ca0b747cee98547669244 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 24 May 2016 15:53:37 +0200 Subject: demeter nimmt xorg-server-xvfb, wenn DISPLAY nicht verfügbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demeter/PKGBUILD | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'demeter') diff --git a/demeter/PKGBUILD b/demeter/PKGBUILD index 02873317..b35f17f6 100755 --- a/demeter/PKGBUILD +++ b/demeter/PKGBUILD @@ -66,6 +66,7 @@ makedepends=( 'perl-template-toolkit' ) checkdepends=() +[ -z "$DISPLAY" ] && checkdepends+=('xorg-server-xvfb') optdepends=( 'perl-encoding-fixlatin-xs' 'perl-file-monitor-lite' @@ -100,15 +101,26 @@ build() { MODULEBUILDRC=/dev/null cd ${pkgname}-${pkgver} - perl ./Build.PL - ./Build + if [ -z "$DISPLAY" ]; then + warning "Empty \$DISPLAY - falling back to xvfb-run (xorg-server-xvfb)" + xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" perl ./Build.PL + xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" ./Build + else + perl ./Build.PL + ./Build + fi ) } check() { cd ${pkgname}-${pkgver} - ./Build test + if [ -z "$DISPLAY" ]; then + warning "Empty \$DISPLAY - falling back to xvfb-run (xorg-server-xvfb)" + xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" ./Build test + else + ./Build test + fi } -- cgit v1.2.3-70-g09d2