35 lines
967 B
Bash
35 lines
967 B
Bash
# Template file for 'libliftoff'
|
|
pkgname=libliftoff
|
|
version=0.4.1
|
|
revision=1
|
|
build_style=meson
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libdrm-devel"
|
|
short_desc="Lightweight KMS plane library"
|
|
maintainer="Dexter Gaon-Shatford <dexter.gaonshatford@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://gitlab.freedesktop.org/emersion/libliftoff"
|
|
distfiles="https://gitlab.freedesktop.org/emersion/libliftoff/-/archive/v${version}/libliftoff-v${version}.tar.gz"
|
|
checksum=44ec5cfdd0df040d1023d4d6a48b23c31f21ce61ee2347da9e1ca244fe24dd1c
|
|
|
|
CFLAGS="-Wno-error=unused-but-set-variable"
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
# The test suite checks for NDEBUG and fails if it is defined, even if all other tests would pass
|
|
CFLAGS+=" -UNDEBUG"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libliftoff-devel_package() {
|
|
depends="libliftoff>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|