void-packages/srcpkgs/libdeflate/template

30 lines
834 B
Bash

# Template file for 'libdeflate'
pkgname=libdeflate
version=1.19
revision=1
build_style=cmake
checkdepends="zlib-devel"
short_desc="Optimized library for DEFLATE/zlib/gzip (de)compression"
maintainer="mobinmob <mobinmob@disroot.org>"
license="MIT"
homepage="https://github.com/ebiggers/libdeflate"
changelog="https://raw.githubusercontent.com/ebiggers/libdeflate/master/NEWS.md"
distfiles="https://github.com/ebiggers/libdeflate/archive/refs/tags/v${version}.tar.gz"
checksum=27bf62d71cd64728ff43a9feb92f2ac2f2bf748986d856133cc1e51992428c25
post_install() {
vlicense COPYING
}
libdeflate-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove "/usr/lib/pkgconfig"
vmove "/usr/lib/cmake"
}
}