1
This commit is contained in:
parent
8ae3a51ff4
commit
95df09dfd0
@ -11,41 +11,40 @@ conflicts=('noisetorch')
|
|||||||
deps_amd64=('git go')
|
deps_amd64=('git go')
|
||||||
build_deps=('git' 'go')
|
build_deps=('git' 'go')
|
||||||
|
|
||||||
sources_amd64=("https://github.com/noisetorch/NoiseTorch.git")
|
sources_amd64=("${name}::git+https://github.com/noisetorch/NoiseTorch.git#tag=v${version}"
|
||||||
checksums_amd64=('SKIP')
|
"git+https://github.com/noisetorch/c-ringbuf.git"
|
||||||
|
"git+https://github.com/noisetorch/rnnoise.git")
|
||||||
|
checksums_amd64=('SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${srcdir}"
|
cd "${srcdir}"
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
${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"
|
|
||||||
|
|
||||||
git submodule init
|
git submodule init
|
||||||
git config submodule. "c/c-ringbuf".url "${srcdir}/c-ringbuf"
|
git config submodule. "c/c-ringbuf".url "${srcdir}/c-ringbuf"
|
||||||
git config submodule. "c/rnnoise".url "${srcdir}/rnnoise"
|
git config submodule. "c/rnnoise".url "${srcdir}/rnnoise"
|
||||||
git submodule--helper update
|
git submodule--helper update
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}"
|
||||||
export GOPATH="${srcdir}/go"
|
export GOPATH="${srcdir}/go"
|
||||||
pushd "c/ladspa"
|
pushd "c/ladspa"
|
||||||
make
|
make
|
||||||
popd
|
popd
|
||||||
|
vendor_flags="-X main.version=${version}"
|
||||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||||
export CGO_CFLAGS="${CFLAGS}"
|
export CGO_CFLAGS="${CFLAGS}"
|
||||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||||
export CGO_LDFLAGS="${LDFLAGS}"
|
export CGO_LDFLAGS="${LDFLAGS}"
|
||||||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
||||||
go generate
|
go generate
|
||||||
go build -ldflags "${vendor_flags}" -linkmode=external" -o bin/noisetorch
|
go build -ldflags "${vendor_flags} -linkmode=external" -o bin/noisetorch
|
||||||
go clean -modcache
|
go clean -modcache
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -Dm755 "./.bin/noisetorch" "${pkgdir}/usr/bin"
|
install -Dm755 bin/noisetorch "${pkgdir}/usr/bin"
|
||||||
install -Dm644 "./assets/noisetorch.desktop" "${pkgdir}/usr/share/applications/"
|
install -Dm644 assets/noisetorch.desktop "${pkgdir}/usr/share/applications/"
|
||||||
install -Dm644 "./assets/icon/noisetorch.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
|
install -Dm644 assets/icon/noisetorch.png "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user