mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 11:14:48 +02:00
31 lines
926 B
Text
31 lines
926 B
Text
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
|
|
pkgname=glfw
|
|
pkgver=3.4
|
|
pkgrel=0
|
|
pkgdesc="Multi-platform library for OpenGL and Vulkan application development"
|
|
url="https://www.glfw.org/"
|
|
arch="all"
|
|
license="Zlib"
|
|
depends_dev="libxinerama-dev linux-headers mesa-dev"
|
|
makedepends="$depends_dev cmake samurai libx11-dev libxcursor-dev libxrandr-dev
|
|
libxi-dev wayland-dev libxkbcommon-dev"
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/glfw/glfw/releases/download/$pkgver/glfw-$pkgver.zip"
|
|
options="!check" # no tests
|
|
|
|
build() {
|
|
cmake -G Ninja -B build \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=ON
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
03de56a0599275ff57759ca19e8f69176058252b5e9976193cc3d9bb7b7b78b6a8dac6ed91de483d03c1b4807d21e1302e5e47c2f0c21e63becb4aba9d5affdc glfw-3.4.zip
|
|
"
|