forked from Plemya-x/alr-repo
		
	123
This commit is contained in:
		@@ -11,13 +11,39 @@ conflicts=('noisetorch')
 | 
			
		||||
deps_amd64=('git go')
 | 
			
		||||
build_deps=('git' 'go')
 | 
			
		||||
 | 
			
		||||
sources_amd64=("https://github.com/${name}/NoiseTorch/releases/download/v${version}/NoiseTorch_x64_v${version}.tgz")
 | 
			
		||||
sources_amd64=("https://github.com/noisetorch/NoiseTorch.git")
 | 
			
		||||
checksums_amd64=('SKIP')
 | 
			
		||||
 | 
			
		||||
prepare() {
 | 
			
		||||
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 config submodule. "c/c-ringbuf".url "${srcdir}/c-ringbuf"
 | 
			
		||||
git config submodule. "c/rnnoise".url "${srcdir}/rnnoise"
 | 
			
		||||
git submodule--helper update
 | 
			
		||||
 | 
			
		||||
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() {
 | 
			
		||||
install -Dm755 "./.bin/noisetorch" "${pkgdir}/usr/bin"
 | 
			
		||||
install -Dm644 "./assets/noisetorch.desktop" "${pkgdir}/usr/share/applications/"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user