a
This commit is contained in:
parent
b9a3e46adf
commit
2ef46c9e66
@ -11,34 +11,18 @@ conflicts=('noisetorch')
|
||||
deps=('git go')
|
||||
build_deps=('git' 'go')
|
||||
|
||||
sources=("${name}::git+https://github.com/noisetorch/NoiseTorch.git#tag=v${version}"
|
||||
"git+https://github.com/noisetorch/c-ringbuf.git"
|
||||
"git+https://github.com/noisetorch/rnnoise.git"
|
||||
)
|
||||
sources=("https://github.com/noisetorch/NoiseTorch.git")
|
||||
|
||||
checksums=('skip')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
git submodule init
|
||||
git config submodule. "c/c-ringbuf".url "${srcdir}/c-ringbuf"
|
||||
git config submodule. "c/rnnoise".url "${srcdir}/rnnoise"
|
||||
git submodule--helper update
|
||||
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}
|
||||
export GOPATH="${srcdir}/go"
|
||||
pushd "c/ladspa"
|
||||
make
|
||||
popd
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
||||
go generate
|
||||
go build -ldflags "${vendor_flags}" -linkmode=external" -o bin/noisetorch
|
||||
go clean -modcache
|
||||
}
|
||||
|
||||
package() {
|
||||
|
Loading…
Reference in New Issue
Block a user