PKGBUILDs/community/allegro/PKGBUILD

44 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
2019-03-15 12:52:59 +00:00
pkgver=5.2.5
2019-12-20 14:15:05 +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)
2019-12-20 14:15:05 +00:00
makedepends=(cmake git glu libtheora mesa-libgl ninja opusfile xorgproto)
depends=(dumb gtk2 jack libgl libpulse libtheora libwebp libxpm opusfile physfs)
2018-07-22 23:29:52 +00:00
source=("git+https://github.com/liballeg/${pkgname}${pkgver%%.*}#tag=$pkgver.0")
md5sums=('SKIP')
build() {
mkdir -p build
cd build
2019-03-15 12:52:59 +00:00
cmake "../${pkgname}${pkgver%%.*}" \
2018-07-22 23:29:52 +00:00
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWANT_DOCS_HTML=OFF \
-G Ninja
ninja
}
package() {
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 "${pkgname}${pkgver%%.*}/LICENSE.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Fix man path
#mv -v -f "$pkgdir/usr/man" "$pkgdir/usr/share/man"
}
# getver: liballeg.org/a5docs/trunk
# vim: ts=2 sw=2 et: