void-packages/srcpkgs/libutf8proc/template

32 lines
897 B
Bash

# Template file for 'libutf8proc'
pkgname=libutf8proc
version=2.9.0
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
short_desc="C library for processing UTF-8 encoded Unicode strings"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://juliastrings.github.io/utf8proc/"
changelog="https://raw.githubusercontent.com/JuliaStrings/utf8proc/master/NEWS.md"
distfiles="https://github.com/JuliaStrings/utf8proc/archive/refs/tags/v${version}.tar.gz"
checksum=18c1626e9fc5a2e192311e36b3010bfc698078f692888940f1fa150547abb0c1
if [ -n "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DUTF8PROC_ENABLE_TESTING=ON"
fi
post_install() {
vlicense LICENSE.md
}
libutf8proc-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}