void-packages/srcpkgs/gnumeric/template
Đoàn Trần Công Danh 3920b00a78 gnumeric: fix l10n dir
2021-01-12 08:15:59 +07:00

37 lines
1.1 KiB
Bash

# Template file for 'gnumeric'
pkgname=gnumeric
version=1.12.48
revision=3
build_style=gnu-configure
hostmakedepends="bison gdk-pixbuf-devel glib-devel intltool itstool pkg-config "
makedepends="goffice-devel librsvg-devel libxslt-devel"
short_desc="GNOME Spreadsheet Program"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://gnumeric.org/"
changelog="https://github.com/GNOME/gnumeric/raw/mainline/NEWS"
distfiles="${GNOME_SITE}/gnumeric/${version%.*}/gnumeric-${version}.tar.xz"
checksum=57cce33a41d34db81292e9eebae8b5046f30e5d919d848256fbb75bfc132a590
# This isn't a direct dependency but when soname bumping perl it will
# cause build failures
hostmakedepends+=" perl-XML-Parser"
if [ "$CROSS_BUILD" ]; then
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
configure_args+=" --without-perl"
fi
post_patch() {
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
}
gnumeric-devel_package() {
depends="gnumeric>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/libspreadsheet.so
}
}