makedeb


ungoogled-chromium-linchrome-bin 120.6099.181.120.0.6099.181.1217362-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="120.6099.181.120.0.6099.181.1217362"
__pkgver='120.6099.181-M120.0.6099.181-r1217362'
_pkgver='120.0.6099.181_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=("d87cec8eba8210e8a00980865377b4e7b8e8b2cdba1a5278bc3fa216cc5f90235c830465cb13d748e1fb6e3c14da87440ce5d174e21c063f6a3bca771d6a9521"
            "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"
}