void-packages/srcpkgs/libutf8proc/template

36 lines
1.0 KiB
Bash

# Template file for 'libutf8proc'
pkgname=libutf8proc
version=2.2.0
revision=1
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="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://www.netsurf-browser.org"
distfiles="http://git.netsurf-browser.org/libutf8proc.git/snapshot/libutf8proc-${version}.tar.gz"
checksum=9013e33d3f0f21d0e393fc37ce59c573857d8c39e04e33654b7ea9511cae52c3
post_install() {
vmkdir usr/lib/pkgconfig
sed "s|@VERSION@|${version}|" \
${FILESDIR}/libutf8proc.pc.in > ${DESTDIR}/usr/lib/pkgconfig/libutf8proc.pc
# Fix headers
vmkdir usr/include/libutf8proc
mv ${DESTDIR}/usr/include/utf8proc.h ${DESTDIR}/usr/include/libutf8proc/
vlicense LICENSE.md
}
libutf8proc-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}