# Description: A simple, fast, cross-platform, and object-oriented multimedia API. # URL: https://www.sfml-dev.org/ # Maintainer: Danny Rawlins, crux at romster dot me # Depends on: flac freetype libjpeg-turbo libvorbis mesa3d openal util-linux xorg-libsm xorg-xcb-util-image name=sfml version=2.5.1 release=1 source=(https://www.sfml-dev.org/files/SFML-$version-sources.zip) build() { cmake -SSFML-$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 \ -DSFML_INSTALL_PKGCONFIG_FILES=1 \ -DSFML_USE_SYSTEM_DEPS=ON \ -DSFML_BUILD_EXAMPLES=0 \ -DSFML_BUILD_DOC=0 \ cmake --build build DESTDIR=$PKG cmake --install build rm -r $PKG/usr/share/SFML/{license,readme}.md }