43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
# Template build file for 'libgsf'.
|
|
pkgname=libgsf
|
|
version=1.14.30
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
|
makedepends="libglib-devel libxml2-devel gdk-pixbuf-devel"
|
|
short_desc="Structured File Library"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-2, LGPL-2.1"
|
|
homepage="http://www.gnome.org/"
|
|
distfiles="${GNOME_SITE}/libgsf/${version%.*}/$pkgname-$version.tar.xz"
|
|
checksum=cb48c3480be4a691963548e664308f497d93c9d7bc12cf6a68d5ebae930a5b70
|
|
|
|
# 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
|
|
|
|
libgsf-devel_package() {
|
|
depends="libglib-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|