void-packages/srcpkgs/librsvg/template

51 lines
1.3 KiB
Text
Raw Normal View History

# Template build file for 'librsvg'.
pkgname=librsvg
2014-12-03 15:26:19 +00:00
version=2.40.6
2014-09-08 09:42:54 +00:00
revision=1
build_style=gnu-configure
2014-09-08 09:42:54 +00:00
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="libtool pkg-config intltool python glib-devel gdk-pixbuf-devel $(vopt_if gir gobject-introspection)"
2014-11-24 09:49:11 +00:00
makedepends="libcroco-devel gtk+3-devel"
triggers="gtk-pixbuf-loaders"
short_desc="SVG library for GNOME"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-06-06 06:14:19 +00:00
homepage="http://librsvg.sourceforge.net/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
2014-12-03 15:26:19 +00:00
checksum=8af349f241677b04b7a1ea6b9b33a6343e781bcccc8a09d00208a47342584f06
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
libtoolize -f
2014-12-03 15:26:19 +00:00
touch aclocal.m4 Makefile.in config.h.in
}
librsvg-devel_package() {
2013-10-15 04:54:46 +00:00
depends="gdk-pixbuf-devel cairo-devel libcroco-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
}
}
librsvg-utils_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin/rsvg-view-3
vmove usr/bin/rsvg-convert
vmove usr/share/man/man1/rsvg-convert.1
}
}