void-packages/srcpkgs/libutf8proc/template
Érico Nogueira 07e9866649 libutf8proc: stop moving headers to subdirectory.
This was done in 4099097381, likely
because netsurf includes utf8proc headers as <libutf8proc/utf8proc.h>
rather than <utf8proc.h>, as other applications do. Unfortunately, this
also made it so any application using utf8proc also had to be passed
custom CFLAGS, because the pkg-config file specified the include dir to
be /usr/include rather than /usr/include/libutf8proc.

Since a move to JuliaLang's utf8proc is likely, modernizing the package
ahead of that change also makes sense.
2021-06-27 04:03:38 -03:00

31 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"
}
}