void-packages/srcpkgs/zchunk/template
2021-06-04 13:43:16 +02:00

34 lines
835 B
Bash

# Template file for 'zchunk'
pkgname=zchunk
version=1.1.15
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="libcurl-devel libzstd-devel"
short_desc="Easy-to-delta, compressed file format"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/zchunk/zchunk"
distfiles="https://github.com/zchunk/zchunk/archive/${version}.tar.gz"
checksum=ae7bc378a8532ca734b6503b53a8739f4a5ba1494074ef09a64135f7d470c72c
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone"
LDFLAGS="-largp"
;;
esac
post_install() {
vlicense LICENSE
}
zchunk-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision} openssl-devel libzstd-devel"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}