diff --git a/README.md b/README.md index 382a205..71d04f2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# %PACKAGE_NAME% +# yandex-browser-stable > [!NOTE] -> This package is not verified by, affiliated with, or supported by %COMPANY_NAME%. -> If you represent %COMPANY_NAME% and wish to request removal or address other concerns, please contact the maintainer or send email to support@aides.space. \ No newline at end of file +> This package is not verified by, affiliated with, or supported by Yandex LLC. +> If you represent Yandex LLC and wish to request removal or address other concerns, please contact the maintainer or send email to support@aides.space. \ No newline at end of file diff --git a/alr.sh b/alr.sh index 09cfdff..13c5ef2 100644 --- a/alr.sh +++ b/alr.sh @@ -1 +1,70 @@ -# Describe your package here \ No newline at end of file +# +# Based on +# - https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser +# +# Format with shfmt -l -w alr.sh +# +_pkgname=browser-stable +_pkgver=24.12.1.712-1 + +name=yandex-browser-stable +version=24.12.1.712 +release=1 +maintainer="Maxim Slipenko " +desc="The web browser from Yandex" +arch=('amd64') +homepage='https://browser.yandex.ru/' +license=("License Agreement for Use of Yandex Browser Programs") + +provides=( + yandex-browser + yandex-browser-stable + webclient +) +conflicts=( + yandex-browser-stable + yandex-browser-beta + yandex-browser-corporate +) + +build_deps=( + binutils + tar + + # for update_codecs + wget + squashfs-tools + glibc-pthread + + # for auto_req only + at-spi2-atk libalsa libat-spi2-core libatk libcairo libcups + libdbus libdrm libexpat libgbm libgio libnspr libnss + libpango libX11 libXcomposite libXdamage libXext libXfixes + libXrandr libxcb libxkbcommon + libwayland-client + libqt5-core libqt5-widgets libqt5-gui + libqt6-core libqt6-widgets libqt6-gui +) + +auto_req=1 +auto_prov=1 + +sources_amd64=( + "https://repo.yandex.ru/yandex-browser/deb/pool/main/y/yandex-${_pkgname}/yandex-${_pkgname}_${_pkgver}_amd64.deb?~name=${name}-${_pkgver}.deb" +) +checksums=( + "sha256:1d59324f0d36c6008f432a3f46e02c26f3b691dce39bd47d437e67240b946c47" +) + +prepare() { + cd "$srcdir" + ar x ${name}-${_pkgver}.deb + tar -xf data.tar.xz +} + +package() { + cp -dr --no-preserve=ownership opt usr "${pkgdir}"/ + install -Dm 0644 "${pkgdir}"/opt/yandex/browser/product_logo_128.png "${pkgdir}"/usr/share/pixmaps/yandex-browser.png + install -Dm 0644 "${scriptdir}/README.md" -t "${pkgdir}/usr/share/doc/${name}/" + "${pkgdir}"/opt/yandex/browser/update_codecs "${pkgdir}"/opt/yandex/browser +}