34 lines
834 B
Bash
34 lines
834 B
Bash
# Template file for 'zchunk'
|
|
pkgname=zchunk
|
|
version=1.5.1
|
|
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=2c187055e2206e62cef4559845e7c2ec6ec5a07ce1e0a6044e4342e0c5d7771d
|
|
|
|
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
|
|
}
|
|
}
|