df0fcfc727
The build is broken otherwise (meson pulls in python3, which is registered first in alternatives, but the gobject bindings were installed for python2 and they couldn't be found afterwards). Python 2 is getting phased out anyway, so switch.
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'gom'
|
|
pkgname=gom
|
|
version=0.3.3
|
|
revision=2
|
|
build_style=meson
|
|
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="Juan RP <xtraeme@gmail.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/Gom"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=ac57e34b5fe273ed306efaeabb346712c264e341502913044a782cdf8c1036d8
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
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
|
|
}
|
|
}
|