summaryrefslogtreecommitdiff
path: root/demeter
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-24 15:53:37 +0200
committerErich Eckner <git@eckner.net>2016-05-24 16:00:52 +0200
commitc10917783d432c6a847ca0b747cee98547669244 (patch)
tree4f609f480de5ccdc3e8cdc8e0ff96a6a9491015a /demeter
parentb8df6ae8ce862884532620e1a81d70dbf42bdb6c (diff)
downloadarchlinuxewe.git.save-c10917783d432c6a847ca0b747cee98547669244.tar.xz
demeter nimmt xorg-server-xvfb, wenn DISPLAY nicht verfügbar
Diffstat (limited to 'demeter')
-rwxr-xr-xdemeter/PKGBUILD18
1 files changed, 15 insertions, 3 deletions
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
}