void-packages/srcpkgs/libparserutils/template

36 lines
1.0 KiB
Bash

# Template file for 'libparserutils'
pkgname=libparserutils
version=0.2.5
revision=1
hostmakedepends="perl netsurf-buildsystem"
short_desc="Library for building efficient parsers, written in C"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.netsurf-browser.org"
distfiles="https://download.netsurf-browser.org/libs/releases/${pkgname}-${version}-src.tar.gz"
checksum=317ed5c718f17927b5721974bae5de32c3fd6d055db131ad31b4312a032ed139
CFLAGS="-Wno-error"
do_build() {
make ${makejobs} COMPONENT_TYPE=lib-shared PREFIX=/usr
make ${makejobs} 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 COPYING
}
libparserutils-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}