PKGBUILDs/extra/allegro/PKGBUILD

37 lines
1.2 KiB
Bash
Raw Normal View History

2018-07-22 23:29:52 +00:00
# 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
2022-06-11 08:50:30 +00:00
pkgver=5.2.8.0
2022-09-16 23:05:51 +00:00
pkgrel=2
2018-07-22 23:29:52 +00:00
pkgdesc='Portable library mainly aimed at video game and multimedia programming'
2019-03-15 12:52:59 +00:00
arch=(x86_64)
url='https://liballeg.org/'
license=(custom)
2021-08-18 21:59:15 +00:00
makedepends=(cmake glu libtheora mesa-libgl ninja opusfile xorgproto)
depends=(dumb gtk3 jack libgl libpulse libtheora libwebp libxpm opusfile physfs)
2020-03-11 12:15:43 +00:00
source=("https://github.com/liballeg/allegro5/releases/download/$pkgver/allegro-$pkgver.tar.gz")
2022-06-11 08:50:30 +00:00
b2sums=('57c71bdc7fb37c75f10def64ffc9bfaa55443e5b6a0910d1c698c936318eed273873aacddbf49ba3a7e6d8c36d332e35f84db1156cc667a50f8f98313af23828')
2018-07-22 23:29:52 +00:00
build() {
2021-08-18 21:59:15 +00:00
cmake -B build -S $pkgname-$pkgver \
-D CMAKE_INSTALL_PREFIX=/usr \
-D WANT_DOCS_HTML=OFF \
-G Ninja
ninja -C build
2018-07-22 23:29:52 +00:00
}
package() {
2021-08-18 21:59:15 +00:00
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 "$pkgname-$pkgver/LICENSE.txt" \
2021-03-09 13:41:51 +00:00
-t "$pkgdir/usr/share/licenses/$pkgname"
2018-07-22 23:29:52 +00:00
# Fix man path
#mv -v -f "$pkgdir/usr/man" "$pkgdir/usr/share/man"
}