From 75641ec9d6fd4c6dfc59e16bde82cb0ed0a419c4 Mon Sep 17 00:00:00 2001 From: maks1ms Date: Thu, 2 Jan 2025 18:00:02 +0000 Subject: [PATCH] init (#1) Reviewed-on: https://code.alt-gnome.ru/aides/yandex-browser-stable/pulls/1 Co-authored-by: maks1ms Co-committed-by: maks1ms --- alr.sh | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/alr.sh b/alr.sh index 09cfdff..6c03c76 100644 --- a/alr.sh +++ b/alr.sh @@ -1 +1,61 @@ -# Describe your package here \ No newline at end of file +_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. +Yandex Browser is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier." +arch=('amd64') +homepage='https://browser.yandex.com/' +license=( + "custom:yandex-browser" +) + +provides=( + yandex-browser + yandex-browser-stable + webclient +) +conflicts=( + yandex-browser-stable + yandex-browser-beta + yandex-browser-corporate +) + +build_deps=( + binutils + bsdtar + wget # for update_codecs + squashfs-tools # for update_codecs + glibc-pthread # for update_codecs + + # 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" +) + +package() { + cd "$srcdir" + ar x ${name}-${_pkgver}.deb + bsdtar xf data.tar.xz -C "$pkgdir" + install -D -m0644 "${pkgdir}"/opt/yandex/browser/product_logo_128.png "${pkgdir}"/usr/share/pixmaps/yandex-browser.png + + "${pkgdir}"/opt/yandex/browser/update_codecs "${pkgdir}"/opt/yandex/browser +} \ No newline at end of file