diff options
| author | Shulhan <ms@kilabit.info> | 2022-07-09 14:00:50 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-07-09 14:02:15 +0700 |
| commit | 1b07686fb6c931d950ff69d681c1e94aa33811e2 (patch) | |
| tree | 32c7ad69bc4d8378a80aae61ef76f2dea66398af /PKGBUILD | |
| parent | b856492c8a8a5d76a12351ebb4ee98850f5ef9d3 (diff) | |
| download | google-cloud-ops-agent-git-1b07686fb6c931d950ff69d681c1e94aa33811e2.tar.xz | |
all: simplify packaging by using the staging (_destdir) area
Instead of uncompressing the final build output file (from build.sh),
we sync the staging to $pkgdir.
This require adding rsync to makedeps.
While at it, use single chown statement for all $pkgdir.
Diffstat (limited to 'PKGBUILD')
| -rw-r--r-- | PKGBUILD | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -19,6 +19,7 @@ makedepends=( 'git' 'java-environment' 'pkg-config' + 'rsync' 'unzip' 'zip' ) @@ -79,10 +80,10 @@ build() { } package() { + _destdir="$srcdir/../staging" + cd "${pkgname}" - tar -xf /tmp/google-cloud-ops-agent.tgz -C ${pkgdir}/ + rsync -ar "${_destdir}/" "${pkgdir}/" rm -rf ${pkgdir}/lib - chown -R root:root ${pkgdir}/etc - chown -R root:root ${pkgdir}/opt - chown -R root:root ${pkgdir}/usr + chown -R root:root ${pkgdir}/ } |
