void-packages/srcpkgs/gucharmap/template
2020-10-09 19:24:22 +07:00

56 lines
2.1 KiB
Bash

# Template file for 'gucharmap'
pkgname=gucharmap
version=12.0.1
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-schemas-compile $(vopt_enable gir introspection)
--with-unicode-data=${XBPS_SRCDISTDIR}/${pkgname}-${version}"
hostmakedepends="pkg-config intltool itstool glib-devel
desktop-file-utils appdata-tools unzip"
makedepends="gtk+3-devel hicolor-icon-theme desktop-file-utils"
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="${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"
checksum="39de8aad9d7f0af33c29db1a89f645e76dad2fce00d1a0f7c8a689252a2c2155
a1a3ca4381eb91f7b65afe7cb7df615cdcf67993fef4b486585f66b349993a10
269ff9d35cbe3cb05dfadb262a6d9d89d7ad43ac6ecd7ec71f47ec036e174912
c17c7726f562bd9ef869096807f0297e1edef9a58fdae1fbae487378fa43586f
bd327cbb8bffd2e4b40b1e9842c9a7d641d1c4e91c34a41020cf174f3a1c86a1
57913fdb1c1271fa9fd51dea08d49370f33d5bfda6bbaba348f44d90029ea11d
6e4553f3b5fffe0d312df324d020ef1278d9595932ae03f4e8a2d427de83cdcd"
skip_extraction="Blocks.txt DerivedAge.txt NamesList.txt Scripts.txt UnicodeData.txt Unihan.zip"
# Package build options
build_options="gir"
build_options_default="gir"
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/*.so"
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}