mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
[l/sdl12-compat] improved based on ARch's PKGBUILD
This commit is contained in:
parent
be9587132d
commit
11f161d860
1 changed files with 7 additions and 2 deletions
|
@ -39,10 +39,15 @@ else
|
|||
fi
|
||||
|
||||
# configuration
|
||||
mkdir -p build
|
||||
cd build || exit
|
||||
|
||||
cmake \
|
||||
-DSDL12TESTS=0 \
|
||||
-DSDL12DEVEL=1 \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$PREFIX \
|
||||
.
|
||||
..
|
||||
|
||||
# compilation
|
||||
make "-j$(nproc)"
|
||||
|
@ -51,7 +56,7 @@ make "-j$(nproc)"
|
|||
make install DESTDIR="$PKG"
|
||||
|
||||
mkdir -p "$PKG$PREFIX/doc/$PRGNAM"
|
||||
cp -R INSTALL LICENSE ./*.md "$PKG$PREFIX/doc/$PRGNAM"
|
||||
cp -R ../*.txt ../*.md "$PKG$PREFIX/doc/$PRGNAM"
|
||||
|
||||
# correction
|
||||
cd "$PKG" || exit
|
||||
|
|
Loading…
Reference in a new issue