void-packages/srcpkgs/libwapcaplet/template

36 lines
998 B
Bash

# Template file for 'libwapcaplet'
pkgname=libwapcaplet
version=0.4.3
revision=1
hostmakedepends="netsurf-buildsystem"
short_desc="String internment library, written in C"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.netsurf-browser.org"
distfiles="http://download.netsurf-browser.org/libs/releases/${pkgname}-${version}-src.tar.gz"
checksum=9b2aa1dd6d6645f8e992b3697fdbd87f0c0e1da5721fa54ed29b484d13160c5c
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
}
libwapcaplet-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"
}
}