1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/testing/raylib-wayland/APKBUILD
2021-03-25 17:18:03 +00:00

42 lines
1.1 KiB
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: rfaa <rfaa@rfaa.se>
pkgname=raylib-wayland
pkgver=3.5.0
pkgrel=0
pkgdesc="Raylib game programming library (Wayland)"
url="https://www.raylib.com/"
arch="all !armhf" # Limited by glfw-wayland
license="Zlib"
depends="glfw-wayland"
depends_dev="glfw-wayland-dev"
makedepends="$depends_dev cmake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/raysan5/raylib/archive/$pkgver.tar.gz"
builddir="$srcdir/raylib-$pkgver"
options="!check" # no tests included
build() {
cmake -B build \
-Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DUSE_EXTERNAL_GLFW=ON \
-DSTATIC=OFF \
-DSHARED=ON \
-DWITH_PIC=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_GAMES=OFF \
-DUSE_WAYLAND=ON
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
for f in build/src/*.h; do
install -Dm0644 "$f" "$pkgdir"/usr/include/"${f##*/}"
done
}
sha512sums="ce3e44b28403cae0def9e36cdf65e01b66b029678fc85e375280517e3b4118e02ddfe2fe20d12720a74d73c21a29aebb4c17c2362e7e9d0f52a69efd990764e0 raylib-wayland-3.5.0.tar.gz"