makedeb


ungoogled-chromium-linchrome-bin 101.0.4951.67.r982481-1


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

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for ungoogled-chromium-linchrome-bin.

# Maintainer: only_vip <onlyme_vip@protonmail.com>
pkgname="ungoogled-chromium-linchrome-bin"
_pkgname="ungoogled-chromium"
pkgver='101.0.4951.67.r982481'
__pkgver='101.0.4951.67-r982481'
_pkgver='101.0.4951.67_1'
pkgrel=1
arch=('amd64')
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')
options=(!strip)
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=("69a853effe2f20c7f65923f4790d286f7caa3f383681a89acf9348d41510a1cb39d1b5e9c04c42d75dd6719fe1ea59e6b604c6d9162c76d835d9ad7cd09a0840"
            "5ef6de325e3fdc363d4e7049b6f91e85b36c9d38a6c48da619314b172250e3e7d6a7fc4f1e29af9b9e86f8b4e51a72087deb79452fdb7083291f035ec6e61b68"
            "48439ea12897b6c1182704f3395948146497b43be8d3f746dd95292793172e2f7ba191edbbd6dacaff6291ec7abd920071ddb5b1ed9ca0531f1ed34d8c8a365b")
package() {
    install -d "${pkgdir}/opt/${_pkgname}" "${pkgdir}/usr/bin"
    install -Dm644 "${srcdir}/${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
    install -Dm644 "${srcdir}/${_pkgname}_${_pkgver}.vaapi_linux/product_logo_48.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${_pkgname}.png"
    cp -vRf "${srcdir}/${_pkgname}_${_pkgver}.vaapi_linux/"* "${pkgdir}/opt/${_pkgname}/"
    install -Dm4755 "${srcdir}/${_pkgname}_${_pkgver}.vaapi_linux/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}"
    rm "${pkgdir}/opt/${_pkgname}/chrome_sandbox"
    patch -d "${pkgdir}" -p1 < "${srcdir}/desktop-icon.patch"
}