PKGBUILDs/extra/allegro/PKGBUILD
2024-01-21 00:34:24 +00:00

36 lines
1.2 KiB
Bash

# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: arjan <arjan@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove makedepend on pandoc
# - comment fixing man path
pkgname=allegro
pkgver=5.2.9.1
pkgrel=1
pkgdesc='Portable library mainly aimed at video game and multimedia programming'
arch=(x86_64)
url='https://liballeg.org/'
license=(custom)
makedepends=(cmake glu libtheora mesa-libgl ninja opusfile xorgproto)
depends=(dumb gtk3 jack libgl libpulse libtheora libwebp libxpm opusfile physfs)
source=("https://github.com/liballeg/allegro5/releases/download/$pkgver/allegro-$pkgver.tar.gz")
b2sums=('8e0bbe007fb94eeca15995c26e7eb94bb388cdf23ddba91002d5d37cd057ac51bb72a1e11e2844f5964dd0e1e2413465da647336c0dce6ef7bc28cbef9bac2d4')
build() {
cmake -B build -S $pkgname-$pkgver \
-D CMAKE_INSTALL_PREFIX=/usr \
-D WANT_DOCS_HTML=OFF \
-G Ninja
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 "$pkgname-$pkgver/LICENSE.txt" \
-t "$pkgdir/usr/share/licenses/$pkgname"
# Fix man path
#mv -v -f "$pkgdir/usr/man" "$pkgdir/usr/share/man"
}