58 lines
1.4 KiB
Text
58 lines
1.4 KiB
Text
# Template build file for 'librsvg'.
|
|
pkgname=librsvg
|
|
version=2.40.2
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="libtool pkg-config intltool python glib-devel gdk-pixbuf-devel"
|
|
makedepends="libcroco-devel gtk+3-devel>=3.10.7_3"
|
|
depends="gdk-pixbuf>=2.26.1_2"
|
|
triggers="gtk-pixbuf-loaders"
|
|
short_desc="SVG library for GNOME"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://librsvg.sourceforge.net/"
|
|
license="LGPL-2.1"
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
|
checksum=48049b643294636df7de1a4b997414d699666f5dc44776945c218a257d2a291c
|
|
|
|
# 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
|
|
|
|
pre_configure() {
|
|
libtoolize -f
|
|
}
|
|
|
|
librsvg-devel_package() {
|
|
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
|
|
}
|
|
}
|