contrib/allegro/Pkgfile

21 lines
598 B
Plaintext
Raw Normal View History

2012-01-22 01:29:51 +01:00
# Description: A multi-platform game programming library for C/C++.
2019-10-13 09:27:08 +02:00
# URL: https://liballeg.org/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2019-10-13 09:27:08 +02:00
# Depends on: flac glu gtk libtheora libwebp openal opus physfs xorg-libxi xorg-libxpm
2012-01-22 01:29:51 +01:00
name=allegro
2020-05-14 14:29:14 +02:00
version=5.2.6.0
2012-01-22 01:29:51 +01:00
release=1
2019-10-13 09:27:08 +02:00
source=(https://github.com/liballeg/allegro5/releases/download/$version/$name-$version.tar.gz)
2012-01-22 01:29:51 +01:00
build() {
2020-05-14 14:29:14 +02:00
cmake -S$name-$version -Bbuild -GNinja \
2012-01-22 01:29:51 +01:00
-DCMAKE_INSTALL_PREFIX=/usr \
2019-10-13 09:27:08 +02:00
-DCMAKE_BUILD_TYPE=Release \
-DWANT_DOCS_HTML=OFF \
2020-05-14 14:29:14 +02:00
-Wno-dev
2012-01-22 01:29:51 +01:00
2020-05-14 14:29:14 +02:00
cmake --build build
DESTDIR=$PKG cmake --build build --target install
2012-01-22 01:29:51 +01:00
}