void-packages/srcpkgs/gucharmap/template
2016-11-08 00:57:28 +01:00

51 lines
2 KiB
Bash

# Template file for 'gucharmap'
pkgname=gucharmap
version=9.0.2
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="http://www.gnome.org"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz
http://www.unicode.org/Public/9.0.0/ucd/Blocks.txt
http://www.unicode.org/Public/9.0.0/ucd/DerivedAge.txt
http://www.unicode.org/Public/9.0.0/ucd/NamesList.txt
http://www.unicode.org/Public/9.0.0/ucd/Scripts.txt
http://www.unicode.org/Public/9.0.0/ucd/UnicodeData.txt
http://www.unicode.org/Public/9.0.0/ucd/Unihan.zip"
skip_extraction="Blocks.txt DerivedAge.txt NamesList.txt Scripts.txt UnicodeData.txt Unihan.zip"
checksum="723ea92c8e877beae3986432b8e002807c6c2d1140590dff1c5bff34bb6ed265
612127d4889032e55d82522e4a0c19793bda8aa8da14ecb3c696d17c83e6be13
5cb15b04693c43df16e0d304deca049e93b001445d163184e0ff1b7c8c852146
eb15aa335aad1c65b9435a8bbbae28461ab641a2243bc41706da5f866e633e46
fba415952f5654145acad220dc2b878f815c673474d2bb4928934e3ba6ccca1d
68dfc414d28257b9b5d6ddbb8b466c768c00ebdf6cbf7784364a9b6cad55ee8f
6afdd48fb3c5d79a527ed27ce2582b2f684c09e16f5d0837fe7e5b0204f46362"
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
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"
}
}