void-packages/srcpkgs/gom/template
2015-08-22 17:20:52 +02:00

43 lines
1.1 KiB
Bash

# Template file for 'gom'
pkgname=gom
version=0.3.1
revision=1
short_desc="GObject Data Mapper"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org"
license="LGPL-2"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=7951eb46ee784cbdbee6e3f2da084ffbf776c11ca1c904404b05feafe37e38f5
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config intltool"
makedepends="sqlite-devel gettext-devel glib-devel gdk-pixbuf-devel"
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
gom-devel_package() {
depends="glib-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}