Skip to content
Snippets Groups Projects
Commit 569020f3 authored by Bart Ribbers's avatar Bart Ribbers Committed by Leo
Browse files

testing/allegro: modernize and enable tests

parent 56e062fa
No related branches found
No related tags found
1 merge request!11743community/{allegro,animatch}: modernize and move from testing
......@@ -7,24 +7,43 @@ arch="all"
url="https://liballeg.org"
pkgdesc="Portable library mainly aimed at video game and multimedia programming"
license="BSD-3-Clause"
makedepends="cmake xorg-server-dev mesa-dev glu-dev libxcursor-dev libjpeg-turbo-dev
libwebp-dev flac-dev libvorbis-dev libxi-dev libtheora-dev alsa-lib-dev
pulseaudio-dev sdl2-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/liballeg/allegro5/archive/$pkgver/allegro5-$pkgver.tar.gz"
makedepends="
cmake
xorg-server-dev
mesa-dev
glu-dev
libxcursor-dev
libjpeg-turbo-dev
libwebp-dev
flac-dev
libvorbis-dev
libxi-dev
libtheora-dev
alsa-lib-dev
pulseaudio-dev
sdl2-dev
"
checkdepends="xvfb-run"
source="https://github.com/liballeg/allegro5/archive/$pkgver/allegro5-$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # No tests
builddir="$srcdir/allegro5-$pkgver"
build() {
cmake \
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DALLEGRO_SDL=ON
make
-DALLEGRO_SDL=ON \
-DWANT_TESTS=ON
cmake --build build
}
check() {
cd build
xvfb-run tests/test_driver --no-display ../tests/test_*.ini
}
package() {
DESTDIR="$pkgdir" make install
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="d590c1a00d1b314c6946e0f6ad3e3a8b6e6309bada2ec38857186f817147ac99dae8a1c4412abe701af88da5dca3dd8f989a1da66630192643d3c08c0146b603 allegro-5.2.6.0.tar.gz"
sha512sums="d590c1a00d1b314c6946e0f6ad3e3a8b6e6309bada2ec38857186f817147ac99dae8a1c4412abe701af88da5dca3dd8f989a1da66630192643d3c08c0146b603 allegro5-5.2.6.0.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment