aboutsummaryrefslogblamecommitdiffstats
path: root/testing/raylib-wayland/APKBUILD
blob: 6a84977343effe31027a5ab326ea948aecea931b (plain) (tree)
1
2
3
4
5
6
7
8


                                             
            


                                                   
                                           
































                                                                                          
                                                                                                                                                                          
# 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"