1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
4 # Contributor: arjan <arjan@archlinux.org>
9 pkgdesc='Portable library mainly aimed at video game and multimedia programming'
11 url='https://liballeg.org/'
13 makedepends=(cmake glu libtheora mesa-libgl ninja opusfile pandoc xorgproto)
14 depends=(dumb gtk3 jack libgl libpulse libtheora libwebp libxpm opusfile physfs)
15 source=("https://github.com/liballeg/allegro5/releases/download/$pkgver/allegro-$pkgver.tar.gz")
16 b2sums=('57c71bdc7fb37c75f10def64ffc9bfaa55443e5b6a0910d1c698c936318eed273873aacddbf49ba3a7e6d8c36d332e35f84db1156cc667a50f8f98313af23828')
19 cmake -B build -S $pkgname-$pkgver \
20 -D CMAKE_INSTALL_PREFIX=/usr \
21 -D WANT_DOCS_HTML=OFF \
27 DESTDIR="$pkgdir" ninja -C build install
28 install -Dm644 "$pkgname-$pkgver/LICENSE.txt" \
29 -t "$pkgdir/usr/share/licenses/$pkgname"
31 mv -v -f "$pkgdir/usr/man" "$pkgdir/usr/share/man"