void-packages/srcpkgs/sqsh-tools/template

48 lines
1.2 KiB
Bash

# Template file for 'sqsh-tools'
pkgname=sqsh-tools
version=1.3.0
revision=1
build_style=meson
makedepends="libcurl-devel zlib-devel liblz4-devel liblzma-devel libzstd-devel
fuse3-devel"
short_desc="Fresh squashfs implementation"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://gottox.de/sqsh-tools/"
distfiles="
https://github.com/Gottox/sqsh-tools/archive/refs/tags/v${version}.tar.gz
https://github.com/Gottox/cextras/archive/36fdb446e11fd4830f93c14340df26c3205d8c33.tar.gz
"
checksum="
660d20cb2360d80f641b0a8b4f28226054b6ce761d88d3b8e35565a854cdb696
9f046157c6837ba9c0c8f30fa4dd120221284a55d9217f07a26d632e0b5fc06f
"
build_wrksrc="sqsh-tools-${version}"
post_extract() {
mkdir -p sqsh-tools-${version}/subprojects
mv cextras-36fdb446e11fd4830f93c14340df26c3205d8c33 \
sqsh-tools-${version}/subprojects
}
post_install() {
vlicense LICENSE
}
libsqsh-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/libsqsh.a"
}
}
libsqsh_package() {
pkg_install() {
vmove "usr/lib/libsqsh.so.*"
}
}