community/allegro to 5.2.7.0-2

This commit is contained in:
David Beauchamp 2021-08-18 17:59:15 -04:00
parent f18f6e369e
commit 5baf5fe247
1 changed files with 11 additions and 13 deletions

View File

@ -9,29 +9,27 @@
pkgname=allegro
pkgver=5.2.7.0
pkgrel=1
pkgrel=2
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 xorgproto)
depends=(dumb gtk2 jack libgl libpulse libtheora libwebp libxcursor libxpm opusfile physfs)
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")
sha256sums=('c1e3b319d99cb453b39d393572ba2b9f3de42a96de424aee7d4a1abceaaa970c')
b2sums=('9cc588a42d461ce06db94c1dd57642a2e9445c4930fcc164f2da57edfb463552a279a5e50f46740561a88c974c96605bb09fcc596e7bc6afb5e30b18ff7b74d5')
build() {
mkdir -p build
cd build
cmake ../$pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWANT_DOCS_HTML=OFF
make
cmake -B build -S $pkgname-$pkgver \
-D CMAKE_INSTALL_PREFIX=/usr \
-D WANT_DOCS_HTML=OFF \
-G Ninja
ninja -C build
}
package() {
cd build
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE.txt" \
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"