void-packages/srcpkgs/goffice/template
2014-10-04 08:48:39 +02:00

35 lines
1.1 KiB
Text

# Template file for 'goffice'
pkgname=goffice
version=0.10.17
revision=1
hostmakedepends="pkg-config pcre intltool libtool glib-devel"
makedepends="GConf-devel gtk+3-devel librsvg-devel libgsf-devel libxml2-devel pcre-devel libxslt-devel"
build_style="gnu-configure"
maintainer="Philipp Hirsch <itself@hanspolo.net>"
license="GPL-2"
short_desc="Library of document-centric objects and utilities building on top of GLib and Gtk+"
homepage="http://freecode.com/projects/${pkgname}"
distfiles="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=43e6556480870fd0a6faf25016ca07c9988e528c68c94ccb114eab158d9e0310
pre_configure() {
libtoolize -f
}
post_install() {
# XXX wtf
if [ -d ${DESTDIR}/destdir/goffice-${version}/usr/share/goffice ]; then
mv ${DESTDIR}/destdir/goffice-${version}/usr/share/goffice ${DESTDIR}/usr/share
fi
}
goffice-devel_package() {
short_desc+=" - development files"
depends="libgsf-devel gtk+3-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
}
}