# Maintainer: Sebastian Krzyszkowiak # Contributor: Alexander F. Rødseth # Contributor: Ionut Biru # Contributor: Tom Newsom # Contributor: arjan pkgname=allegro-git pkgver=r11630.ce68911b4 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 opusfile pandoc xorgproto) depends=(dumb gtk2 jack libgl libpulse libtheora libwebp libxpm opusfile physfs) provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("git+https://github.com/liballeg/allegro5.git") md5sums=('SKIP') pkgver() { cd "$srcdir/allegro5" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { mkdir -p build cd build cmake ../allegro5 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWANT_DOCS_HTML=OFF make } package() { cd build make DESTDIR="$pkgdir" install install -Dm644 "$srcdir"/allegro5/LICENSE.txt -t "$pkgdir"/usr/share/licenses/allegro # Fix man path mv -v -f "$pkgdir/usr/man" "$pkgdir/usr/share/man" }