2015-08-22 17:20:37 +02:00
|
|
|
# Template file for 'gom'
|
2015-03-17 14:21:03 +01:00
|
|
|
pkgname=gom
|
2015-08-22 17:20:37 +02:00
|
|
|
version=0.3.1
|
2015-03-17 14:21:03 +01:00
|
|
|
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"
|
2015-08-22 17:20:37 +02:00
|
|
|
checksum=7951eb46ee784cbdbee6e3f2da084ffbf776c11ca1c904404b05feafe37e38f5
|
2015-03-17 14:21:03 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|