Maxim Slipenko
dbfcaaa1c5
All checks were successful
buildbot/alt-sisyphus-main-build Build done.
Reviewed-on: #1 Co-authored-by: Maxim Slipenko <no-reply@maxim.slipenko.com> Co-committed-by: Maxim Slipenko <no-reply@maxim.slipenko.com>
70 lines
1.7 KiB
Bash
70 lines
1.7 KiB
Bash
#
|
|
# 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 <maks1ms@alt-gnome.ru>"
|
|
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
|
|
}
|