void-packages/srcpkgs/gom/template

36 lines
1.0 KiB
Bash

# Template file for 'gom'
pkgname=gom
version=0.4
revision=2
build_style=meson
build_helper="gir"
configure_args="-Denable-introspection=$(vopt_if gir true false)
-Denable-gtk-doc=false"
pycompile_module="gi"
hostmakedepends="pkg-config"
makedepends="sqlite-devel gettext-devel libglib-devel gdk-pixbuf-devel
$(vopt_if gir 'gobject-introspection python3-gobject-devel')"
short_desc="GObject Data Mapper"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/Gom"
distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=68d08006aaa3b58169ce7cf1839498f45686fba8115f09acecb89d77e1018a9d
# Package build options
build_options="gir"
build_options_default="gir"
gom-devel_package() {
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
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
fi
}
}