void-packages/srcpkgs/libdazzle/template

43 lines
1.2 KiB
Bash

# Template file for 'libdazzle'
pkgname=libdazzle
version=3.30.2
revision=1
build_style=meson
configure_args="-Denable_gtk_doc=false -Dwith_vapi=$(vopt_if gir true false)
-Dwith_introspection=$(vopt_if gir true false)"
hostmakedepends="glib-devel pkg-config
$(vopt_if gir 'gobject-introspection vala')"
makedepends="gtk+3-devel libglib-devel"
short_desc="A library to delight your users with fancy features"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://wiki.gnome.org/Apps/Builder"
changelog="https://raw.githubusercontent.com/GNOME/libdazzle/libdazzle-3-30/NEWS"
distfiles="${GNOME_SITE}/libdazzle/${version%.*}/libdazzle-${version}.tar.xz"
checksum=78770eae9fa15ac5acb9c733d29459330b2540affbf72933119e36dbd90b36d5
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
do_check() {
# Needs X
:
}
libdazzle-devel_package() {
depends="${sourcepkg}-${version}_${revision} gtk+3-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}