void-packages/srcpkgs/libutf8proc/template

38 lines
1.1 KiB
Bash

# Template build file for 'libutf8proc'.
pkgname=libutf8proc
version=1.3.1
revision=2
_realversion=1.3.1-3
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/${_realversion}.tar.bz2"
checksum=ce1f428849ee1e733e7b28ffa7b2680d901ba3ce1e703fd154e9fce5b0a54d07
wrksrc=libutf8proc-release
build_wrksrc=${_realversion}
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"
}
}