void-packages/srcpkgs/magpie/template

49 lines
1.8 KiB
Bash

# Template file for 'magpie'
pkgname=magpie
version=0.9.3
revision=1
build_helper="gir"
build_style=meson
configure_args="-Degl_device=true -Dudev=true -Dnative_backend=true
-Dprofiler=false -Dintrospection=true"
hostmakedepends="gettext glib-devel pkg-config zenity xorg-server"
makedepends="elogind-devel glib-devel gnome-desktop-devel graphene-devel
json-glib-devel libglib-devel libSM-devel libXtst-devel libcanberra-devel
libinput-devel MesaLib-devel pipewire-devel startup-notification-devel gtk+3-devel
gnome-settings-daemon-devel libgudev-devel libwacom-devel"
depends="gsettings-desktop-schemas desktop-file-utils"
short_desc="X11 window manager and compositor library for Budgie Desktop"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/BuddiesOfBudgie/magpie"
distfiles="https://github.com/BuddiesOfBudgie/magpie/releases/download/v${version}/magpie-${version}.tar.xz"
checksum=99060cefe4684be05daf8e82b414b78d15cbe2c723993db902681ab4017bbbe9
shlib_provides="libmagpie-clutter-0.so libmagpie-cogl-0.so
libmagpie-cogl-pango-0.so"
make_check=no # needs a full graphical session
# Upstream keeps pulling generated headers even though it can cause race
# conditions in meson/ninja
pre_build() {
ninja ${makejobs} -C build src/meta-dbus-display-config.h
}
post_install() {
# modify the pkg-config files to respect ${pc_sysrootdir} for variables that are
# meant to be called with 'pkg-config --variable'
vsed -e 's|^girdir.*|girdir=${pc_sysrootdir}/${libdir}/magpie-0|g' \
-i ${DESTDIR}/usr/lib/pkgconfig/libmagpie-0.pc
}
magpie-devel_package() {
depends="gtk+3-devel graphene-devel clutter-devel
libX11-devel libXtst-devel magpie-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/magpie-0/*.gir"
vmove "usr/lib/*.so"
}
}