csfml: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-07 16:10:12 +00:00
parent 79cb0e63cf
commit 8e6bf7f4a2
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 5 additions and 10 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF32cQ+qyRU/LsVAEGhTBddPihF4u2rYxY5iaLEhbyMtYQdKjTtU4GqN3041sCszixjCe9vdnNiYkG1cjbBCt9bgw=
SHA256 (Pkgfile) = 883f925de059d1906c7142dc8ed5c636c9c4252190619527b8902ab6794c8f0d
RWSagIOpLGJF3/gztQ8gwWNSWQmz3NaKm3X2zrBE8s4nq+PdRmLtINpxYMHxU1lMSAblB0iidNGBzoqT2NPDrUetsc8/8HvfcAQ=
SHA256 (Pkgfile) = 0a13bc7167025e76670341dbaeeb8dada2cc8241704842dfe03f3758f6dfaf5d
SHA256 (.footprint) = 96b69425b24203474ad681c8b02c4d2d3dc0de69664d90288a2179121b64824d
SHA256 (CSFML-2.5-sources.zip) = 8fc95d886eb15568e76c224802dcc5077fba22a4d69cc3a97672242c4ecd66a4

View File

@ -9,18 +9,13 @@ release=1
source=(https://www.sfml-dev.org/files/CSFML-$version-sources.zip)
build() {
cd CSFML-$version
install -d build
cd build
cmake .. \
cmake -SCSFML-$version -Bbuild -GNinja \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DSFML_BUILD_DOC=false
make
make DESTDIR=$PKG install
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/CSFML/{license,readme}.txt
rmdir $PKG/usr/share/CSFML