contrib/sfml/Pkgfile

31 lines
718 B
Plaintext

# 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() {
cd SFML-$version
install -d build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DSFML_INSTALL_PKGCONFIG_FILES=1 \
-DSFML_USE_SYSTEM_DEPS=ON \
-DSFML_BUILD_EXAMPLES=0 \
-DSFML_BUILD_DOC=0 \
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/SFML/{license,readme}.md
}