2017-08-12 19:30:12 +10:00
|
|
|
# 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
|
2019-11-09 19:26:14 +11:00
|
|
|
version=2.5
|
2017-08-12 19:30:12 +10:00
|
|
|
release=1
|
|
|
|
source=(https://www.sfml-dev.org/files/CSFML-$version-sources.zip)
|
|
|
|
|
|
|
|
build() {
|
2020-11-07 16:10:12 +00:00
|
|
|
cmake -SCSFML-$version -Bbuild -GNinja \
|
2017-08-12 19:30:12 +10:00
|
|
|
-DCMAKE_BUILD_TYPE='Release' \
|
|
|
|
-DCMAKE_INSTALL_PREFIX='/usr' \
|
2019-11-09 19:26:14 +11:00
|
|
|
-DSFML_BUILD_DOC=false
|
2017-08-12 19:30:12 +10:00
|
|
|
|
2020-11-07 16:10:12 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2017-08-12 19:30:12 +10:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/CSFML/{license,readme}.txt
|
|
|
|
rmdir $PKG/usr/share/CSFML
|
|
|
|
rmdir $PKG/usr/share
|
|
|
|
}
|