Skip to content
Snippets Groups Projects
Commit 9c71958c authored by David Demelier's avatar David Demelier Committed by Leo
Browse files

testing/raylib: new aport

http://www.raylib.com
a simple and easy to use game development library
parent 345ee74f
No related branches found
No related tags found
No related merge requests found
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=raylib
pkgver=3.7.0
pkgrel=0
pkgdesc="a simple and easy to use game development library"
url="http://www.raylib.com"
arch="all"
license="Zlib"
makedepends="cmake glfw-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/raysan5/raylib/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests.
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DBUILD_EXAMPLES=Off \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_EXTERNAL_GLFW=ON \
$CMAKE_CROSSOPTS .
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
42967cc3cbcc7901b5790f6cafe4c06599450002fa7b9f1af2b40459cb6dee38b6b6cb708141fa98c22f1f930d5abf3396c2b742034e2d2a60de6e58cff0a107 raylib-3.7.0.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment