void-packages/srcpkgs/libwapcaplet/template
2019-07-21 10:08:53 +02:00

35 lines
998 B
Bash

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