47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
# Template file for 'librsvg'
|
|
pkgname=librsvg
|
|
version=2.58.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir rust"
|
|
configure_args="--disable-static --enable-introspection --enable-vala"
|
|
hostmakedepends="cargo pkg-config glib-devel gdk-pixbuf-devel
|
|
gi-docgen python3-docutils vala"
|
|
makedepends="cairo-devel freetype-devel gdk-pixbuf-devel libcroco-devel
|
|
libglib-devel libxml2-devel pango-devel vala-devel rust-std"
|
|
short_desc="SVG library for GNOME"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/LibRsvg"
|
|
# update changelog when release series changes
|
|
changelog="https://gitlab.gnome.org/GNOME/librsvg/-/raw/librsvg-${version%.*}/NEWS"
|
|
distfiles="${GNOME_SITE}/librsvg/${version%.*}/librsvg-${version}.tar.xz"
|
|
checksum=3728596290a8576d305d06ec8afdf473516feee9dff22e03235eac433d56824e
|
|
|
|
# reference files are for specific pango and harfbuzz versions
|
|
# the test suite isn't designed to be run by distros
|
|
make_check=no
|
|
|
|
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/gir-1.0
|
|
vmove usr/share/vala
|
|
|
|
vmkdir usr/share/gtk-doc/html
|
|
mv ${DESTDIR}/usr/share/doc/Rsvg-2.0 ${PKGDESTDIR}/usr/share/gtk-doc/html/
|
|
}
|
|
}
|
|
|
|
librsvg-utils_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
vmove usr/bin/rsvg-convert
|
|
vmove usr/share/man/man1/rsvg-convert.1
|
|
}
|
|
}
|