From a652f480cf0017c48a8655e9a4807cd290c1fcd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 28 Oct 2022 11:34:54 +0700 Subject: [PATCH] google-earth-pro: proper cleanup --- srcpkgs/google-earth-pro/template | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/srcpkgs/google-earth-pro/template b/srcpkgs/google-earth-pro/template index a8dd0d7996b..6bb98082cb6 100644 --- a/srcpkgs/google-earth-pro/template +++ b/srcpkgs/google-earth-pro/template @@ -16,6 +16,8 @@ restricted=yes nostrip=yes post_fetch() { + mkdir -p "$wrksrc" + cd "$wrksrc" $XBPS_FETCH_CMD https://www.google.com/intl/ALL/policies/terms/index.html>Google-Terms-of-Service.html \ https://www.google.com/help/terms_maps.html>Google-Earth-Additional-Terms-of-Service.html \ https://www.google.com/help/legalnotices_maps.html>Legal-Notices-for-Google-Earth-and-Google-Earth-APIs.html \ @@ -42,10 +44,10 @@ do_install() { usr/share/icons/hicolor/${i}x${i}/apps ${pkgname}.png done - for i in ${XBPS_BUILDDIR}/Google-Terms-of-Service.html \ - ${XBPS_BUILDDIR}/Google-Earth-Additional-Terms-of-Service.html \ - ${XBPS_BUILDDIR}/Legal-Notices-for-Google-Earth-and-Google-Earth-APIs.html \ - ${XBPS_BUILDDIR}/Google-Privacy-Policy.html; do + for i in Google-Terms-of-Service.html \ + Google-Earth-Additional-Terms-of-Service.html \ + Legal-Notices-for-Google-Earth-and-Google-Earth-APIs.html \ + Google-Privacy-Policy.html; do vlicense ${i} done