diff options
author | Erich Eckner <git@eckner.net> | 2016-05-24 15:53:37 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-24 16:00:52 +0200 |
commit | c10917783d432c6a847ca0b747cee98547669244 (patch) | |
tree | 4f609f480de5ccdc3e8cdc8e0ff96a6a9491015a /demeter | |
parent | b8df6ae8ce862884532620e1a81d70dbf42bdb6c (diff) | |
download | archlinuxewe-c10917783d432c6a847ca0b747cee98547669244.tar.xz |
demeter nimmt xorg-server-xvfb, wenn DISPLAY nicht verfügbar
Diffstat (limited to 'demeter')
-rwxr-xr-x | demeter/PKGBUILD | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/demeter/PKGBUILD b/demeter/PKGBUILD index 02873317b..b35f17f6c 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 } |