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

View file

@ -9,29 +9,27 @@
pkgname=allegro pkgname=allegro
pkgver=5.2.7.0 pkgver=5.2.7.0
pkgrel=1 pkgrel=2
pkgdesc='Portable library mainly aimed at video game and multimedia programming' pkgdesc='Portable library mainly aimed at video game and multimedia programming'
arch=(x86_64) arch=(x86_64)
url='https://liballeg.org/' url='https://liballeg.org/'
license=(custom) license=(custom)
makedepends=(cmake glu libtheora mesa-libgl opusfile xorgproto) makedepends=(cmake glu libtheora mesa-libgl ninja opusfile xorgproto)
depends=(dumb gtk2 jack libgl libpulse libtheora libwebp libxcursor libxpm opusfile physfs) depends=(dumb gtk3 jack libgl libpulse libtheora libwebp libxpm opusfile physfs)
source=("https://github.com/liballeg/allegro5/releases/download/$pkgver/allegro-$pkgver.tar.gz") source=("https://github.com/liballeg/allegro5/releases/download/$pkgver/allegro-$pkgver.tar.gz")
sha256sums=('c1e3b319d99cb453b39d393572ba2b9f3de42a96de424aee7d4a1abceaaa970c') b2sums=('9cc588a42d461ce06db94c1dd57642a2e9445c4930fcc164f2da57edfb463552a279a5e50f46740561a88c974c96605bb09fcc596e7bc6afb5e30b18ff7b74d5')
build() { build() {
mkdir -p build cmake -B build -S $pkgname-$pkgver \
cd build -D CMAKE_INSTALL_PREFIX=/usr \
cmake ../$pkgname-$pkgver \ -D WANT_DOCS_HTML=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \ -G Ninja
-DWANT_DOCS_HTML=OFF ninja -C build
make
} }
package() { package() {
cd build DESTDIR="$pkgdir" ninja -C build install
make DESTDIR="$pkgdir" install install -Dm644 "$pkgname-$pkgver/LICENSE.txt" \
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE.txt" \
-t "$pkgdir/usr/share/licenses/$pkgname" -t "$pkgdir/usr/share/licenses/$pkgname"
# Fix man path # Fix man path
#mv -v -f "$pkgdir/usr/man" "$pkgdir/usr/share/man" #mv -v -f "$pkgdir/usr/man" "$pkgdir/usr/share/man"