void-packages/srcpkgs/gucharmap/template

62 lines
2.3 KiB
Bash

# Template file for 'gucharmap'
pkgname=gucharmap
version=15.0.0
revision=1
build_style=meson
build_helper="gir"
configure_args="-Db_ndebug=false -Db_lto=false -Dgtk3=true
$(vopt_if gir '' '-Dgir=false -Dvapi=false') $(vopt_bool gtk_doc docs)
-Ducd_path=${XBPS_SRCDISTDIR}/${pkgname}-${version}"
hostmakedepends="pkg-config glib-devel gettext itstool perl unzip
$(vopt_if gtk_doc gtk-doc)"
makedepends="desktop-file-utils cairo-devel pango-devel atk-devel
freetype-devel libglib-devel pcre2-devel gtk+3-devel"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="GNOME Unicode Charmap"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later, GFDL-1.3-only, Unicode-DFS-2015"
homepage="https://wiki.gnome.org/Apps/Gucharmap"
distfiles="https://gitlab.gnome.org/GNOME/gucharmap/-/archive/${version}/gucharmap-${version}.tar.bz2
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"
checksum="c85c1554923df5028de1247bbba782e61ba15f2d21a711a68b23cd3a35788c97
529dc5d0f6386d52f2f56e004bbfab48ce2d587eea9d38ba546c4052491bd820
7570877e0fa197c45338f7c41a02636da4e14c8dba6a3611a01cd30bf329d5ca
904fee81f5005e7a3d36e7afd0c5e6f643ee588dca531fdc9937e43c51216081
cca85d830f46aece2e7c1459ef1249993dca8f2e46d51e869255be140d7ea4b0
806e9aed65037197f1ec85e12be6e8cd870fc5608b4de0fffd990f689f376a73
24b154691fc97cb44267b925d62064297086b3f896b57a8181c7b6d42702a026"
skip_extraction="Blocks.txt DerivedAge.txt NamesList.txt Scripts.txt UnicodeData.txt Unihan.zip"
# Package build options
build_options="gir gtk_doc"
build_options_default="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
post_install() {
vlicense COPYING
vlicense COPYING.GFDL
vlicense COPYING.UNICODE
}
gucharmap-devel_package() {
depends="gtk+3-devel libglib-devel pcre2-devel
${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}