27 lines
659 B
Plaintext
27 lines
659 B
Plaintext
# Description: C bindings for sfml.
|
|
# URL: https://www.sfml-dev.org/download/csfml/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: sfml
|
|
|
|
name=csfml
|
|
version=2.5.1
|
|
release=1
|
|
source=(https://www.sfml-dev.org/files/CSFML-$version-sources.zip)
|
|
|
|
build() {
|
|
cmake -S CSFML-$version -B build -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D SFML_BUILD_DOC=false \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
rm -r $PKG/usr/share/CSFML/{license,readme}.txt
|
|
rmdir $PKG/usr/share/CSFML
|
|
rmdir $PKG/usr/share
|
|
}
|