Commit 6b76fb9d authored by Jean-Louis Fuchs's avatar Jean-Louis Fuchs Committed by Leonardo Arena

testing/zathura: run checks on xvfb

parent ad747915
......@@ -4,7 +4,7 @@
# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch>
pkgname=zathura
pkgver=0.3.7
pkgrel=0
pkgrel=1
pkgdesc="zathura - highly customizable and functional document viewer"
url="https://pwmt.org/projects/zathura/"
arch="all"
......@@ -12,19 +12,30 @@ license="zlib"
depends="libmagic"
makedepends="girara-dev file-dev sqlite-dev intltool check-dev py-docutils
ncurses"
checkdepends="mesa-dri-swrast dbus xvfb"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
source="https://pwmt.org/projects/zathura/download/zathura-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
source="https://pwmt.org/projects/zathura/download/zathura-$pkgver.tar.gz
test.sh"
builddir="$srcdir/$pkgname-$pkgver"
build() {
make -C "$_builddir" || return 1
make -C "$_builddir/doc" || return 1
make -C "$builddir"
make -C "$builddir/doc"
}
package() {
make PREFIX=/usr DESTDIR="$pkgdir" \
-C "$_builddir" install || return 1
-C "$builddir" install
}
check() {
cd "$builddir"
"$srcdir/test.sh"
}
sha512sums="830a1b88820507a40a20b046c504d8ab3022a35c2c4c0d93a67f77ab5e31d746362a6f28fb9786a647cd0bfd943306aca74cbb2092774aedfb52380e713df533 zathura-0.3.7.tar.gz"
md5sums="b2c9e23e9f494e1ced5069f850dba673 zathura-0.3.7.tar.gz
629958fdb6a9c3b1b7c2968ecd18f6f4 test.sh"
sha256sums="22afff89f4093f22fb82188417ff9bfa9695b19a4fe894dca05b7c821b390ff0 zathura-0.3.7.tar.gz
569d14ef2d95562e9cd251ba9bd22abfca397cfe0ef84085ff66d5e9ff53f082 test.sh"
sha512sums="830a1b88820507a40a20b046c504d8ab3022a35c2c4c0d93a67f77ab5e31d746362a6f28fb9786a647cd0bfd943306aca74cbb2092774aedfb52380e713df533 zathura-0.3.7.tar.gz
295af504eb3f20171f4ab766a39e1211778cae1187f90dfd1db1601424e5c13c36953697f2244dbe0b10bc6c8d0db3166096551f92254fb2a4182b280dab32d4 test.sh"
#!/bin/sh
Xvfb :4242 &
PID=$!
export DISPLAY=:4242
if make test; then
kill $PID
return 0
else
kill $PID
return 1
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment