35 lines
862 B
Bash
35 lines
862 B
Bash
# Template file for 'wavpack'
|
|
pkgname=wavpack
|
|
version=4.75.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
short_desc="An audio codec (lossy and lossless)"
|
|
homepage="http://www.wavpack.com/"
|
|
license="BSD"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
distfiles="http://www.wavpack.com/${pkgname}-${version}.tar.bz2"
|
|
checksum=c63e5c2106749dc6b2fb4302f2260f4803a93dd6cadf337764920dc836e3af2e
|
|
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686|*x86_64*) configure_args+=" --enable-mmx";;
|
|
esac
|
|
sed -i 's/^prefix=.*/&\nexec_&/' wavpack.pc.in
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|