36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
|
# Template build file for 'libutf8proc'.
|
||
|
pkgname=libutf8proc
|
||
|
version=1.1.6
|
||
|
revision=1
|
||
|
hostmakedepends="pkg-config perl netsurf-buildsystem"
|
||
|
short_desc="CSS parser and selection engine, written in C"
|
||
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||
|
license="MIT"
|
||
|
homepage="http://www.netsurf-browser.org"
|
||
|
distfiles="http://git.netsurf-browser.org/$pkgname.git/snapshot/$pkgname-release/$version.tar.bz2"
|
||
|
checksum=8e21bcf381a389f0f70b0234c4e5c97e9ef7716b4f518c9be06cc2b4f1167065
|
||
|
wrksrc=libutf8proc-release/1.1.6
|
||
|
|
||
|
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
|
||
|
|
||
|
vinstall LICENSE 0644 usr/share/licenses/${pkgname}
|
||
|
}
|
||
|
|
||
|
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"
|
||
|
}
|
||
|
}
|