diff --git a/common/shlibs b/common/shlibs index 935ace564ff..3cf507d8ada 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4274,3 +4274,4 @@ libunicode.so.0.4 libunicode-0.4.0_1 libunicode_ucd.so.0.4 libunicode-0.4.0_1 libunicode_loader.so.0.4 libunicode-0.4.0_1 force-stage.so.0.1 void-force-stage-0.1_1 +libliftoff.so.0 libliftoff-0.4.1_1 diff --git a/srcpkgs/libliftoff-devel b/srcpkgs/libliftoff-devel new file mode 120000 index 00000000000..977a28aa78d --- /dev/null +++ b/srcpkgs/libliftoff-devel @@ -0,0 +1 @@ +libliftoff \ No newline at end of file diff --git a/srcpkgs/libliftoff/template b/srcpkgs/libliftoff/template new file mode 100644 index 00000000000..d5336bcc3b9 --- /dev/null +++ b/srcpkgs/libliftoff/template @@ -0,0 +1,34 @@ +# 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 " +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" + } +}