[l/sdl12-compat] improved based on ARch's PKGBUILD

This commit is contained in:
Gwenhael Le Moine 2022-04-13 16:58:16 +02:00
parent be9587132d
commit 11f161d860
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -39,10 +39,15 @@ else
fi fi
# configuration # configuration
mkdir -p build
cd build || exit
cmake \ cmake \
-DSDL12TESTS=0 \
-DSDL12DEVEL=1 \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \ -DCMAKE_INSTALL_PREFIX=$PREFIX \
. ..
# compilation # compilation
make "-j$(nproc)" make "-j$(nproc)"
@ -51,7 +56,7 @@ make "-j$(nproc)"
make install DESTDIR="$PKG" make install DESTDIR="$PKG"
mkdir -p "$PKG$PREFIX/doc/$PRGNAM" mkdir -p "$PKG$PREFIX/doc/$PRGNAM"
cp -R INSTALL LICENSE ./*.md "$PKG$PREFIX/doc/$PRGNAM" cp -R ../*.txt ../*.md "$PKG$PREFIX/doc/$PRGNAM"
# correction # correction
cd "$PKG" || exit cd "$PKG" || exit