google-earth-pro: don't manually extract deb
This commit is contained in:
parent
76bac84c9b
commit
a301622cae
@ -4,40 +4,32 @@ version=7.3.4.8738
|
||||
revision=1
|
||||
archs="x86_64"
|
||||
depends="alsa-lib desktop-file-utils fontconfig glu gst-plugins-base1
|
||||
hicolor-icon-theme libSM libXi libXrender libcups libproxy nss qt5-script qt5-sensors qt5-webkit"
|
||||
hicolor-icon-theme libSM libXi libXrender libcups libproxy nss qt5-script
|
||||
qt5-sensors qt5-webkit"
|
||||
short_desc="Explore the far reaches of the world"
|
||||
maintainer="Jason Manley <jason@jasondavid.tv>"
|
||||
license="custom:Google"
|
||||
homepage="https://www.google.com/earth/index.html"
|
||||
distfiles="https://dl.google.com/linux/earth/deb/pool/main/g/${pkgname}-stable/${pkgname}-stable_${version}-r0_amd64.deb"
|
||||
distfiles="https://dl.google.com/linux/earth/deb/pool/main/g/google-earth-pro-stable/google-earth-pro-stable_${version}-r0_amd64.deb"
|
||||
checksum=86a4f43c493a872224c76dea7cf107e0b22a1da109b4d1a43e5c82e05437790b
|
||||
repository=nonfree
|
||||
restricted=yes
|
||||
nostrip=yes
|
||||
|
||||
post_fetch() {
|
||||
mkdir -p "$wrksrc"
|
||||
cd "$wrksrc"
|
||||
post_extract() {
|
||||
$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 \
|
||||
https://www.google.com/intl/ALL/policies/privacy/index.html>Google-Privacy-Policy.html
|
||||
rm {index.html,legalnotices_maps.html,terms_maps.html}
|
||||
}
|
||||
|
||||
do_extract() {
|
||||
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-stable_${version}-r0_amd64.deb
|
||||
bsdtar xf data.tar.xz
|
||||
rm index.html legalnotices_maps.html terms_maps.html
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vmkdir opt/google
|
||||
vcopy opt/google/earth opt/google
|
||||
vcopy etc /
|
||||
vcopy opt /
|
||||
vcopy usr /
|
||||
|
||||
vmkdir usr/bin
|
||||
ln -s /opt/google/earth/pro/googleearth ${DESTDIR}/usr/bin/${pkgname}
|
||||
|
||||
vinstall opt/google/earth/pro/${pkgname}.desktop 644 usr/share/applications
|
||||
vinstall opt/google/earth/pro/google-earth-pro.desktop 644 usr/share/applications
|
||||
|
||||
for i in 16 22 24 32 48 64 128 256; do
|
||||
vinstall opt/google/earth/pro/product_logo_${i}.png 644 \
|
||||
@ -51,6 +43,6 @@ do_install() {
|
||||
vlicense ${i}
|
||||
done
|
||||
|
||||
sed -i '/googleearth-bin/s/^/LC_NUMERIC=en_US.UTF-8 /' \
|
||||
vsed -i '/googleearth-bin/s/^/LC_NUMERIC=en_US.UTF-8 /' \
|
||||
${DESTDIR}/opt/google/earth/pro/googleearth
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user