use build instead of build_dir

since it's in FreeCAD's gitignore and makes it more convenient when building a local repo
This commit is contained in:
Adrian 2022-05-17 19:58:04 -04:00
parent f2c0a3997f
commit e804c24c9b

View file

@ -78,7 +78,7 @@ prepare() {
build() { build() {
cd FreeCAD cd FreeCAD
cmake -Wno-dev -G Ninja -B build_dir -S . \ cmake -Wno-dev -G Ninja -B build -S . \
-D BUILD_ENABLE_CXX_STD=C++17 \ -D BUILD_ENABLE_CXX_STD=C++17 \
-D BUILD_FEM=ON \ -D BUILD_FEM=ON \
-D BUILD_FEM_NETGEN=OFF \ -D BUILD_FEM_NETGEN=OFF \
@ -106,17 +106,17 @@ build() {
-D CMAKE_INSTALL_DATAROOTDIR='/usr/share' \ -D CMAKE_INSTALL_DATAROOTDIR='/usr/share' \
-D CMAKE_INSTALL_DOCDIR='/usr/share/doc/freecad' -D CMAKE_INSTALL_DOCDIR='/usr/share/doc/freecad'
cmake --build build_dir cmake --build build
} }
check() { check() {
cd FreeCAD/build_dir cd FreeCAD/build
LD_LIBRARY_PATH=lib bin/FreeCADCmd --console --run-test 0 LD_LIBRARY_PATH=lib bin/FreeCADCmd --console --run-test 0
} }
package() { package() {
cd FreeCAD cd FreeCAD
DESTDIR="${pkgdir}" cmake --install build_dir DESTDIR="${pkgdir}" cmake --install build
# package thumbnailer # package thumbnailer
install src/Tools/freecad-thumbnailer "${pkgdir}/usr/lib/freecad/bin/freecad-thumbnailer" install src/Tools/freecad-thumbnailer "${pkgdir}/usr/lib/freecad/bin/freecad-thumbnailer"