summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae7e4064d43fe83c20e2d1b2fb5b4bd4941fabd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: only_vip <onlyme_vip@protonmail.com>
# co-maintainer: zocker_160 <zocker1600 at posteo dot net>
pkgname="ungoogled-chromium-linchrome-bin"
_pkgname="ungoogled-chromium"
pkgver='96.0.4664.45.r929512'
__pkgver='96.0.4664.45-r929512'
_pkgver='96.0.4664.45_1'
pkgrel=1
arch=('x86_64')
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)
#https://github.com/macchrome/linchrome/releases/download/v96.0.4664.45-r929512-portable-ungoogled-Lin64/ungoogled-chromium_96.0.4664.45_1.vaapi_linux.tar.xz
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=('d96fa2b81c003bcae3bb49452d97a5466bced6ef1066492a10e1d7ecc9fd6ea65c2b7c0b32ffb4c6bdac76c99ee642a6305d498aad70e6ae963a1390c5a82dd9'
            '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"
}