void-packages/srcpkgs/libutf8proc/template

32 lines
917 B
Bash

# Template file for 'libutf8proc'
pkgname=libutf8proc
version=2.4.0
revision=2
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="pkg-config perl netsurf-buildsystem"
short_desc="C library for processing UTF-8 encoded Unicode strings"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.netsurf-browser.org"
distfiles="http://git.netsurf-browser.org/libutf8proc.git/snapshot/libutf8proc-${version}.tar.gz"
checksum=7820cf02c37cbb3b977b406f276b384c6b4e22f992bc850592503bb3f5111049
post_install() {
vmkdir usr/lib/pkgconfig
sed "s|@VERSION@|${version}|" \
${FILESDIR}/libutf8proc.pc.in > ${DESTDIR}/usr/lib/pkgconfig/libutf8proc.pc
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"
}
}