forked from Plemya-x/alr-repo
		
	1
This commit is contained in:
		| @@ -12,35 +12,37 @@ deps_amd64=('git go') | |||||||
| build_deps=('git' 'go') | build_deps=('git' 'go') | ||||||
|  |  | ||||||
| sources_amd64=("git+https://github.com/noisetorch/NoiseTorch.git#tag=v${version}" | sources_amd64=("git+https://github.com/noisetorch/NoiseTorch.git#tag=v${version}" | ||||||
| "git+https://github.com/noisetorch/c-ringbuf.git" | #"git+https://github.com/noisetorch/c-ringbuf.git" | ||||||
| "git+https://github.com/noisetorch/rnnoise.git") | #"git+https://github.com/noisetorch/rnnoise.git" | ||||||
|  | ) | ||||||
| checksums_amd64=('SKIP' | checksums_amd64=('SKIP' | ||||||
| 'SKIP' | #'SKIP' | ||||||
| 'SKIP') | #'SKIP' | ||||||
|  | ) | ||||||
|  |  | ||||||
| prepare() { | prepare() { | ||||||
| cd "${srcdir}" | cd "${srcdir}" | ||||||
| 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 update | #git submodule update | ||||||
| } | } | ||||||
|  |  | ||||||
| build() { | build() { | ||||||
| cd "${srcdir}" | 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}" | #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() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user