archrelease: copy trunk to community-any
[arch-community.git] / allegro / trunk / PKGBUILD
blobed57f926a03b8de7cc6f84be55423e554c923b91
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>
6 pkgname=allegro
7 pkgver=5.2.8.0
8 pkgrel=2
9 pkgdesc='Portable library mainly aimed at video game and multimedia programming'
10 arch=(x86_64)
11 url='https://liballeg.org/'
12 license=(custom)
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')
18 build() {
19   cmake -B build -S $pkgname-$pkgver \
20     -D CMAKE_INSTALL_PREFIX=/usr \
21     -D WANT_DOCS_HTML=OFF \
22     -G Ninja
23   ninja -C build
26 package() {
27   DESTDIR="$pkgdir" ninja -C build install
28   install -Dm644 "$pkgname-$pkgver/LICENSE.txt" \
29     -t "$pkgdir/usr/share/licenses/$pkgname"
30   # Fix man path
31   mv -v -f "$pkgdir/usr/man" "$pkgdir/usr/share/man"