-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Builds and installs both debug and release libraries.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Author: mosra <[email protected]> | ||
pkgname=magnum-integration | ||
pkgver=dev.release | ||
pkgrel=1 | ||
pkgdesc="Integration libraries for Magnum OpenGL graphics engine (debug+release libs)" | ||
arch=('i686' 'x86_64') | ||
url="http://mosra.cz/blog/magnum.php" | ||
license=('MIT') | ||
depends=('magnum' 'bullet') | ||
makedepends=('cmake' 'ninja') | ||
options=('!strip') | ||
provides=('magnum-integration-git') | ||
|
||
build() { | ||
mkdir -p "$startdir/build" | ||
cd "$startdir/build" | ||
|
||
cmake .. \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DWITH_BULLET=ON \ | ||
-DBUILD_TESTS=ON \ | ||
-G Ninja | ||
ninja | ||
|
||
mkdir -p "$startdir/build-release" | ||
cd "$startdir/build-release" | ||
|
||
cmake .. \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DWITH_BULLET=ON \ | ||
-DBUILD_TESTS=ON \ | ||
-G Ninja | ||
ninja | ||
} | ||
|
||
check() { | ||
cd "$startdir/build" | ||
ctest --output-on-failure | ||
|
||
cd "$startdir/build-release" | ||
ctest --output-on-failure | ||
} | ||
|
||
package() { | ||
cd "$startdir/build" | ||
DESTDIR="$pkgdir/" ninja install | ||
|
||
cd "$startdir/build-release" | ||
DESTDIR="$pkgdir/" ninja install/strip | ||
} |