void-packages/srcpkgs/wavpack/template

40 lines
942 B
Bash

# Template file for 'wavpack'
pkgname=wavpack
version=5.7.0
revision=1
build_style=gnu-configure
configure_args="--enable-static"
short_desc="Hybrid lossless audio compression"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://www.wavpack.com/"
changelog="https://raw.githubusercontent.com/dbry/WavPack/master/NEWS"
distfiles="https://www.wavpack.com/wavpack-${version}.tar.bz2"
checksum=8944b237968a1b3976a1eb47cd556916e041a2aa8917495db65f82c3fcc2a225
case "$XBPS_TARGET_MACHINE" in
armv5*) configure_args+=" --disable-asm";;
esac
post_install() {
vlicense COPYING LICENSE
}
libwavpack_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
wavpack-devel_package() {
depends="libwavpack>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}