mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-13 13:54:21 +02:00
meson 1.7.0 and later don't include test build targets in the default build target. With --no-rebuild the test targets aren't build at all. Removing --no-rebuild shouldn't cause any false rebuilds since the files aren't changed between the build() and check() step. Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891 Ref https://github.com/mesonbuild/meson/pull/10413
37 lines
931 B
Text
37 lines
931 B
Text
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libepoxy
|
|
pkgver=1.5.10
|
|
pkgrel=1
|
|
pkgdesc="Direct Rendering Manager runtime library"
|
|
url="https://github.com/anholt/libepoxy"
|
|
arch="all"
|
|
license="MIT"
|
|
options="!check" # Requires dlvsym
|
|
depends_dev="libx11-dev"
|
|
makedepends="$depends_dev mesa-dev meson"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/anholt/libepoxy/archive/refs/tags/$pkgver.tar.gz"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Ddocs=false \
|
|
-Degl=yes \
|
|
-Dglx=yes \
|
|
-Dx11=true \
|
|
-Dtests=true \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
6786f31c6e2865e68a90eb912900a86bf56fd3df4d78a477356886ac3b6ef52ac887b9c7a77aa027525f868ae9e88b12e5927ba56069c2e115acd631fca3abee libepoxy-1.5.10.tar.gz
|
|
"
|