[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
|
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
|
||||||
|
|
Loading…
Reference in a new issue