aboutsummaryrefslogtreecommitdiffstats
path: root/community/allegro/APKBUILD
blob: ad322ddcf3bc51a1b7377fbbdeffcd5f98b4397b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=allegro
pkgver=5.2.7.0
pkgrel=4
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
	xorg-server-dev
	"
source="https://github.com/liballeg/allegro5/archive/$pkgver/allegro5-$pkgver.tar.gz
	0001-Use-the-compatibility-aliases-for-accessing-struct-i.patch
	"
subpackages="$pkgname-dev"
builddir="$srcdir/allegro5-$pkgver"

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 \
		-DCMAKE_BUILD_TYPE=None \
		-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="
2b9b90e59f0f440ba90fe3fac0153245e96c46524c24fce74502569c2395a67aee73b83e4503ea21e7fe078113c4fb5752c984858e7f0647c9fa332415ddd3fe  allegro5-5.2.7.0.tar.gz
a376d987998cb30e5d1367da7d42277d8b9b774f091271f4c921b2d61716af5567c184cd36b23ca52d91724f13b3600612f507abc7cdfbfbfa70d559bb83f9d7  0001-Use-the-compatibility-aliases-for-accessing-struct-i.patch
"