void-packages/srcpkgs/gucharmap/template

60 lines
2.2 KiB
Bash

# Template file for 'gucharmap'
pkgname=gucharmap
version=11.0.3
revision=1
build_style=gnu-configure
configure_args="--disable-schemas-compile $(vopt_enable gir introspection)
--with-unicode-data=${XBPS_SRCDISTDIR}/${pkgname}-${version}"
hostmakedepends="pkg-config intltool gnome-doc-utils itstool glib-devel
desktop-file-utils appdata-tools unzip $(vopt_if gir gobject-introspection)"
makedepends="gtk+3-devel hicolor-icon-theme desktop-file-utils"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="GNOME Unicode Charmap"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://wiki.gnome.org/Apps/Gucharmap"
license="GPL-3.0-or-later, GFDL-1.3-only, Unicode-DFS-2015"
distfiles="${GNOME_SITE}/gucharmap/${version%.*}/gucharmap-${version}.tar.xz
https://www.unicode.org/Public/${version/.*/}.0.0/ucd/Blocks.txt
https://www.unicode.org/Public/${version/.*/}.0.0/ucd/DerivedAge.txt
https://www.unicode.org/Public/${version/.*/}.0.0/ucd/NamesList.txt
https://www.unicode.org/Public/${version/.*/}.0.0/ucd/Scripts.txt
https://www.unicode.org/Public/${version/.*/}.0.0/ucd/UnicodeData.txt
https://www.unicode.org/Public/${version/.*/}.0.0/ucd/Unihan.zip"
skip_extraction="Blocks.txt DerivedAge.txt NamesList.txt Scripts.txt UnicodeData.txt Unihan.zip"
checksum="6fe4405aa4d2edeedf412befa3cdf423211c80f8836085c4c8c56679658e37fa
0b457b66c788a97c8521e265f0b793d4ed911356d39eb61029f9cef8554cd052
eb115a5de9a32c9ad447d6ea1cddcadb53d47f6cbc2521f3fe0bebb040c39866
683f8d7324e524d88b6006c47729d41893c498f963d0be46743942ec2c80227b
e9f3c0aa3c4f892b589c809cf4ae051a39921417cda6fefdbe43717b92db76d5
4997a3196eb79b4d0d6b8384560f6aeb46a062693f0abd5ba736abbff7976099
72079d9d64acd452e1496f67b975a82a989f0023f37aed092c51cf13567fc833"
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
LDFLAGS+=" -ldl"
post_install() {
vlicense COPYING
vlicense COPYING.GFDL
vlicense COPYING.UNICODE
}
gucharmap-devel_package() {
depends="gtk+3-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove "usr/lib/*.so"
}
}