void-packages/srcpkgs/libfetch/template

33 lines
783 B
Bash

# Template file for 'libfetch'
pkgname=libfetch
version=2.34
revision=24
build_style=gnu-makefile
makedepends="openssl-devel"
short_desc="File Transfer Library for URLs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://www.NetBSD.org"
distfiles="https://repo-default.voidlinux.org/distfiles/libfetch-${version}.tar.xz"
checksum=4e6d4541f213c9ab42ea94d49c2573f0a6f54b04f14668530960f1424b04f722
do_build() {
make CC=$CC
sed -n '/Copyright/,/SUCH DAMAGE/p' fetch.c >LICENSE
}
post_install() {
vlicense LICENSE
}
libfetch-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}