56 lines
1.7 KiB
Bash
56 lines
1.7 KiB
Bash
# Template file for 'libadwaita'
|
|
pkgname=libadwaita
|
|
version=1.6.1
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dexamples=true -Dtests=true $(vopt_bool gtk_doc)
|
|
$(vopt_bool gir vapi) $(vopt_feature gir introspection)"
|
|
hostmakedepends="glib-devel pkg-config $(vopt_if gtk_doc gi-docgen)
|
|
$(vopt_if gir vala-devel) gettext sassc"
|
|
makedepends="gtk4-devel libglib-devel harfbuzz-devel AppStream-devel"
|
|
checkdepends="xvfb-run cantarell-fonts dbus"
|
|
short_desc="GTK4 building blocks for modern adaptive applications"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.0-or-later"
|
|
homepage="https://gitlab.gnome.org/GNOME/libadwaita/"
|
|
changelog="https://gitlab.gnome.org/GNOME/libadwaita/-/raw/libadwaita-1-6/NEWS"
|
|
distfiles="${GNOME_SITE}/libadwaita/${version%.*}/libadwaita-${version}.tar.xz"
|
|
checksum=d00ac845a4545d92e6805e31095a51c68f9f4e02426900472084b0cddce3f833
|
|
make_check_pre="dbus-run-session xvfb-run"
|
|
|
|
build_options="gir gtk_doc"
|
|
build_options_default="gir gtk_doc"
|
|
|
|
pre_build() {
|
|
# help gi-docgen find gi files on cross
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
export XDG_DATA_DIRS=/usr/$XBPS_CROSS_TRIPLET/usr/share/
|
|
fi
|
|
}
|
|
|
|
libadwaita-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} gtk4-devel AppStream-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
if [ "$build_option_gtk_doc" ]; then
|
|
vmove usr/share/doc/libadwaita-1
|
|
fi
|
|
}
|
|
}
|
|
|
|
libadwaita-demo_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - demonstration application"
|
|
pkg_install() {
|
|
vmove usr/bin/adwaita-1-demo
|
|
}
|
|
}
|