PKGBUILDs/community/allegro/PKGBUILD

39 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
2021-03-09 13:41:51 +00:00
pkgver=5.2.7.0
pkgrel=1
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)
2020-03-11 12:15:43 +00:00
makedepends=(cmake glu libtheora mesa-libgl opusfile xorgproto)
2020-12-25 15:58:13 +00:00
depends=(dumb gtk2 jack libgl libpulse libtheora libwebp libxcursor libxpm opusfile physfs)
2020-03-11 12:15:43 +00:00
source=("https://github.com/liballeg/allegro5/releases/download/$pkgver/allegro-$pkgver.tar.gz")
2021-03-09 13:41:51 +00:00
sha256sums=('c1e3b319d99cb453b39d393572ba2b9f3de42a96de424aee7d4a1abceaaa970c')
2018-07-22 23:29:52 +00:00
build() {
mkdir -p build
cd build
2020-03-11 12:15:43 +00:00
cmake ../$pkgname-$pkgver \
2018-07-22 23:29:52 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
2020-03-11 12:15:43 +00:00
-DWANT_DOCS_HTML=OFF
make
2018-07-22 23:29:52 +00:00
}
package() {
2020-03-11 12:15:43 +00:00
cd build
make DESTDIR="$pkgdir" install
2021-03-09 13:41:51 +00:00
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE.txt" \
-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"
}