void-packages/srcpkgs/libutf8proc/template

37 lines
1.1 KiB
Bash

# Template build file for 'libutf8proc'.
pkgname=libutf8proc
version=1.3.1
revision=1
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/$pkgname.git/snapshot/$pkgname-release/$version.tar.bz2"
checksum=4fcfcd0df095267146b22564c0823ddc06503f51379e328b9517ca6873ce1830
wrksrc=libutf8proc-release
build_wrksrc=${version}
do_build() {
make ${makejobs} HOST_CC=cc COMPONENT_TYPE=lib-shared PREFIX=/usr
make ${makejobs} HOST_CC=cc COMPONENT_TYPE=lib-static PREFIX=/usr
}
do_install() {
make COMPONENT_TYPE=lib-shared PREFIX=/usr DESTDIR=${DESTDIR} install
make COMPONENT_TYPE=lib-static PREFIX=/usr DESTDIR=${DESTDIR} install
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/*.a"
vmove "usr/lib/*.so"
}
}