void-packages/srcpkgs/rnnoise/template

34 lines
843 B
Bash

# Template file for 'rnnoise'
pkgname=rnnoise
_githash=1cbdbcf1283499bbb2230a6b0f126eb9b236defd
version=0.4.1
revision=1
wrksrc="${pkgname}-${_githash}"
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Recurrent neural network for audio noise reduction"
maintainer="Louis Dupré Bertoni <contact@louisdb.xyz>"
license="BSD-3-Clause"
homepage="https://jmvalin.ca/demo/rnnoise/"
distfiles="https://github.com/xiph/rnnoise/archive/${_githash}.tar.gz"
checksum=68c7ab4e408426088603e19955e746bb2a412d84bb121b6f39834c60fc8068b7
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYING
}
rnnoise-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}