contrib/allegro4/Pkgfile

27 lines
793 B
Plaintext

# Description: A multi-platform game programming library for C/C++.
# URL: https://liballeg.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: alsa-lib glu libidn libpng libvorbis xorg-libxcursor xorg-libxpm xorg-libxxf86dga
name=allegro4
version=4.4.3.1
release=1
source=(https://github.com/liballeg/allegro5/releases/download/$version/allegro-$version.tar.gz)
build() {
cmake -Sallegro-$version -Bbuild -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev
cmake --build build -j ${JOBS:-1}
DESTDIR=$PKG cmake --install build
install -Dm644 allegro-$version/misc/allegro.m4 \
$PKG/usr/share/aclocal/allegro.m4
rm -r $PKG/usr/doc
}