diff options
author | Shulhan | 2022-07-09 13:15:44 +0700 |
---|---|---|
committer | Shulhan | 2022-07-09 13:34:33 +0700 |
commit | fddcb64806196a308f04eeb7c6e428e90fbc998e (patch) | |
tree | 340ade951c517add9dd22afb925a7fe9054e9e55 | |
parent | 62550ad000eff79f08d156c14bf672ddec63d45a (diff) | |
download | aur-fddcb64806196a308f04eeb7c6e428e90fbc998e.tar.gz |
all: set the DESTDIR variable when running build.sh
The goal is to allow us to inspect the installed files and their
structure.
The DESTDIR directory contains installed files, similar to prefix.
If its not set, the directory will be created under /tmp with random
name.
This also fix build error due to META-INF directory exist on the second
or next build.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore index bc0519f21b11..fa33c8602013 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ /opentelemetry-operations-collector /pkg /src +/staging /tmp @@ -64,12 +64,17 @@ prepare() { "${srcdir}/opentelemetry-java-contrib" git submodule update git apply "${srcdir}/0001-apps-hostmetrics.patch" + + rm -rf ${srcdir}/google-cloud-ops-agent-git/submodules/opentelemetry-java-contrib/META-INF } build() { + _destdir="$srcdir/../staging" + mkdir -p "$_destdir" + echo "destdir: $_destdir" + cd "${pkgname}" - echo "build in $PWD" - BUILD_DISTRO=arch CODE_VERSION="${pkgver}" \ + BUILD_DISTRO=arch CODE_VERSION="${pkgver}" DESTDIR="$_destdir" \ ./build.sh } |