makedeb


ungoogled-chromium-linchrome-bin 130.6723.123.130.0.6723.123.1356013-2


Portable Chromium ungoogled (A lightweight approach to removing Google web service dependency) for 64-bit Linux prebuilt binary by macchrome

Click here to go back to the commit logs for ungoogled-chromium-linchrome-bin.

Commit:


Hash: 1d613373bc8f9c35fb75ddb1a7d5b69fa284a660

Message: add desktop file patch + cleanup

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 15664cf..f2517cc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,21 @@
 generated-by = makedeb-makepkg
 
 pkgbase = ungoogled-chromium-linchrome-bin
-	pkgdesc = Portable Chromium ungoogled( A lightweight approach to removing Google web service dependency) for 64-bit Linux prebuilt binary by macchrome
+	pkgdesc = Portable Chromium ungoogled (A lightweight approach to removing Google web service dependency) for 64-bit Linux prebuilt binary by macchrome
 	pkgver = 93.0.4577.82.r902210
-	pkgrel = 2
+	pkgrel = 3
 	url = https://github.com/macchrome/linchrome
-	install = .install
 	arch = x86_64
 	license = BSD-3-clause
 	provides = chromium
 	conflicts = chromium
 	replaces = chromium
 	options = !strip
-	source = https://github.com/macchrome/linchrome/releases/download/v93.0.4577.82-r902210-portable-ungoogled-Lin64/ungoogled-chromium_93.0.4577.82_1.vaapi_linux.tar.xz
+	source = ungoogled-chromium-93.0.4577.82_1.tar.xz::https://github.com/macchrome/linchrome/releases/download/v93.0.4577.82-r902210-portable-ungoogled-Lin64/ungoogled-chromium_93.0.4577.82_1.vaapi_linux.tar.xz
+	source = ungoogled-chromium.desktop
+	source = desktop-icon.patch
 	sha512sums = 086a47bc962970820c4a5b79565dfd152f08483acb7d0174a23e81bc6d5b9ded07fd80a450956a15b08331735d740f49524c4c772ec1979b0a3ceb56ec55eb44
+	sha512sums = 1e3b17afb6efe5343162bbebefe80d69c46a6616383b2343b630e11e141f0be3523b094725c1793e54f191839ee959dcb9d696bbe2b44f07258adddf54b9bbd3
+	sha512sums = 48439ea12897b6c1182704f3395948146497b43be8d3f746dd95292793172e2f7ba191edbbd6dacaff6291ec7abd920071ddb5b1ed9ca0531f1ed34d8c8a365b
 
 pkgname = ungoogled-chromium-linchrome-bin
diff --git a/.install b/.install
deleted file mode 100644
index 3ab0591..0000000
--- a/.install
+++ /dev/null
@@ -1,14 +0,0 @@
-## arg 1:  the new package version
-post_install() {
-  echo "
-                           ████     ██   ███████   ██████████ ████████   
-                          ░██░██   ░██  ██░░░░░██ ░░░░░██░░░ ░██░░░░░    
-                          ░██░░██  ░██ ██     ░░██    ░██    ░██         
-                          ░██ ░░██ ░██░██      ░██    ░██    ░███████    
-                          ░██  ░░██░██░██      ░██    ░██    ░██░░░░   ██
-                          ░██   ░░████░░██     ██     ░██    ░██      ░░ 
-                          ░██    ░░███ ░░███████      ░██    ░████████ ██
-                          ░░      ░░░   ░░░░░░░       ░░     ░░░░░░░░ ░░ "
-  echo -e "\n<NOTE>\nrun <$ ungoogled-chromium> after the install is finished just once. \nthis will populate the menu with required desktop files for chromium.\nif you remove this package delete the desktop file that is created in HOME/.local/share/applications/chromium-devel.desktop manually.\n<NOTE>\n"
-}
-
diff --git a/PKGBUILD b/PKGBUILD
index 726b8e6..eace35a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,43 @@
 # Maintainer: only_vip <onlyme_vip@protonmail.com>
+
 pkgname="ungoogled-chromium-linchrome-bin"
 _pkgname="ungoogled-chromium"
 pkgver='93.0.4577.82.r902210'
 __pkgver='93.0.4577.82-r902210'
 _pkgver='93.0.4577.82_1'
-pkgrel=2
+pkgrel=3
 arch=('x86_64')
-pkgdesc="Portable Chromium ungoogled( A lightweight approach to removing Google web service dependency) for 64-bit Linux prebuilt binary by macchrome"
+pkgdesc="Portable Chromium ungoogled (A lightweight approach to removing Google web service dependency) for 64-bit Linux prebuilt binary by macchrome"
 url="https://github.com/macchrome/linchrome"
 license=('BSD-3-clause')
 provides=('chromium')
 conflicts=('chromium')
 replaces=('chromium')
 options=(!strip)
-install='.install'
-source=("${url}/releases/download/v${__pkgver}-portable-ungoogled-Lin64/${_pkgname}_${_pkgver}.vaapi_linux.tar.xz")
-sha512sums=('086a47bc962970820c4a5b79565dfd152f08483acb7d0174a23e81bc6d5b9ded07fd80a450956a15b08331735d740f49524c4c772ec1979b0a3ceb56ec55eb44')
+
+source=("${_pkgname}-${_pkgver}.tar.xz::${url}/releases/download/v${__pkgver}-portable-ungoogled-Lin64/${_pkgname}_${_pkgver}.vaapi_linux.tar.xz"
+        "ungoogled-chromium.desktop"
+        "desktop-icon.patch")
+sha512sums=('086a47bc962970820c4a5b79565dfd152f08483acb7d0174a23e81bc6d5b9ded07fd80a450956a15b08331735d740f49524c4c772ec1979b0a3ceb56ec55eb44'
+'1e3b17afb6efe5343162bbebefe80d69c46a6616383b2343b630e11e141f0be3523b094725c1793e54f191839ee959dcb9d696bbe2b44f07258adddf54b9bbd3'
+'48439ea12897b6c1182704f3395948146497b43be8d3f746dd95292793172e2f7ba191edbbd6dacaff6291ec7abd920071ddb5b1ed9ca0531f1ed34d8c8a365b')
+
 package() {
+    cd ${srcdir}
+    install -D -m644 "${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
+    
+    cd "${srcdir}/${_pkgname}_${_pkgver}.vaapi_linux"
+    install -D -m644 "product_logo_48.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${_pkgname}.png"
+    
     mkdir -p "${pkgdir}/opt/${_pkgname}"
-    mkdir -p "${pkgdir}/usr/share/applications"
     mkdir -p "${pkgdir}/usr/bin"
-    cp -vRf "${srcdir}/${_pkgname}_${_pkgver}.vaapi_linux/"* "${pkgdir}/opt/${_pkgname}/"
-    # install -Dm644 "${srcdir}/${_pkgname}_${_pkgver}.vaapi_linux/" "${pkgdir}/opt/${_pkgname}/"
-    install -Dm4755 "${srcdir}/${_pkgname}_${_pkgver}.vaapi_linux/chrome_sandbox" "${pkgdir}/opt/${_pkgname}/chrome-sandbox"
+    
+    cp -vRf ./* "${pkgdir}/opt/${_pkgname}"
+    install -D -m4755 chrome_sandbox "${pkgdir}/opt/${_pkgname}/chrome-sandbox"
     chown root:root "${pkgdir}/opt/${_pkgname}/chrome-sandbox"
-    ln -rs "${pkgdir}/opt/${_pkgname}/chrome-wrapper" "${pkgdir}/usr/bin/${_pkgname}"
+    
+    ln -s "${pkgdir}/opt/${_pkgname}/chrome-wrapper" "${pkgdir}/usr/bin/${_pkgname}"
     rm "${pkgdir}/opt/${_pkgname}/chrome_sandbox"
+    
+    patch -d "${pkgdir}" -p1 < "${srcdir}/desktop-icon.patch"
 }
diff --git a/desktop-icon.patch b/desktop-icon.patch
new file mode 100644
index 0000000..7754c89
--- /dev/null
+++ b/desktop-icon.patch
@@ -0,0 +1,10 @@
+--- a/opt/ungoogled-chromium/chrome-wrapper
++++ b/opt/ungoogled-chromium/chrome-wrapper
+@@ -137,7 +137,6 @@
+ # vendor string or release channel information.
+ export CHROME_VERSION_EXTRA="custom"
+ 
+-exists_desktop_file || generate_desktop_file
+ 
+ CMD_PREFIX=
+ ARGS=()
diff --git a/ungoogled-chromium.desktop b/ungoogled-chromium.desktop
new file mode 100644
index 0000000..e0b084a
--- /dev/null
+++ b/ungoogled-chromium.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=Chromium
+Exec=ungoogled-chromium %U
+Terminal=false
+Icon=ungoogled-chromium
+Type=Application
+Categories=Application;Network;WebBrowser;
+MimeType=text/html;text/xml;application/xhtml_xml;