aports/community/allegro/APKBUILD
2023-04-12 03:37:44 +02:00

59 lines
1.5 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=allegro
pkgver=5.2.8.0
pkgrel=3
arch="all"
url="https://liballeg.org"
pkgdesc="Portable library mainly aimed at video game and multimedia programming"
license="BSD-3-Clause"
makedepends="
alsa-lib-dev
cmake
flac-dev
glu-dev
gtk+3.0-dev
libjpeg-turbo-dev
libtheora-dev
libvorbis-dev
libwebp-dev
libxcursor-dev
libxi-dev
mesa-dev
pulseaudio-dev
samurai
xorg-server-dev
"
source="https://github.com/liballeg/allegro5/releases/download/$pkgver/allegro-$pkgver.tar.gz
0001-Add-the-example-data-copying-target-inside-the-main-CMakeLists.txt.patch
"
subpackages="$pkgname-dev"
build() {
# sdl2 is disabled for now as it's experimental still
# and the tests are crashing on it
# https://github.com/liballeg/allegro5/issues/1229
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DALLEGRO_SDL=OFF \
-DWANT_TESTS=ON \
-DWANT_EXAMPLES=OFF \
-DWANT_DEMO=OFF
cmake --build build
}
check() {
cd build
tests/test_driver --no-display ../tests/test_*.ini
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
e7dcfe92646a571929d47c268f0f3844afd67a0396ea0d532908e33e39661c9c5dc7929cc01d622804c068c3aa0e4c394972d128072617457fcabe5ef6a8e5f3 allegro-5.2.8.0.tar.gz
d0f48b0d1e2ff773fc8beae46903e9d904c8fcbb9020c4134a891492f81e4db8b68b1ecd92de1ddc32581e6e3e937b0b03c8dc552ee25b6f22402fac7fd42b3c 0001-Add-the-example-data-copying-target-inside-the-main-CMakeLists.txt.patch
"