parent
09f65093cf
commit
2007f88904
@ -1 +1,2 @@
|
||||
DIST r7grafika-amd64-1.6.21751004.deb 105756012 BLAKE2B 3d2a09224945eb136821b62e0a7b033bed9dbb6afe323bd764668427c09062521093411980da74c906f5bc4c6a2a9ac720d01a0ca13315648688dc79cee8fcf4 SHA512 a2fc0a552c74b0f45656dfc4624eb58858b1d2bf3223a371e2b6a9db84d8d2bb2c910657ac555dcacdb19e229ce99be65320a505d069b3ca8921c84281cab907
|
||||
DIST r7grafika-amd64-1.8.221111227.deb 106378790 BLAKE2B d4378fa8b033a560be720d9ebcb4262db03242d94e6ee03310435a9150b965934a8cc1c1eb6b6821eb1611aaeaf54b5158f8b41b525a837399a2831b67dd7fc1 SHA512 a7147673957484a82b5fcb4fce99a1516cc2f5812beb152f5194912fa7a1a4f2a6baf8aac3b5f8bce82e9af78adebe355dd4e955db4af3f70129c5555d35317b
|
||||
|
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit unpacker xdg
|
||||
|
||||
DESCRIPTION="R7-Grafika desktop app"
|
||||
HOMEPAGE="https://r7-office.ru/grafika"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
RESTRICT="bindist strip mirror"
|
||||
|
||||
MY_PV=$(ver_rs 3- '')
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( https://download.r7-office.ru/r7graph/${PN}-amd64-${MY_PV}.deb )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libnotify
|
||||
dev-libs/nss
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/libXtst
|
||||
x11-misc/xdg-utils
|
||||
app-accessibility/at-spi2-core
|
||||
sys-apps/util-linux
|
||||
app-crypt/libsecret
|
||||
dev-libs/libappindicator
|
||||
"
|
||||
|
||||
S=${WORKDIR}
|
||||
R7="opt/${PN}"
|
||||
|
||||
src_unpack() {
|
||||
unpack_deb ${A}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mv * "${D}" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if type update-alternatives 2>/dev/null >&1; then
|
||||
# Remove previous link if it doesn't use update-alternatives
|
||||
if [ -L '/usr/bin/R7Grafika' -a -e '/usr/bin/R7Grafika' -a "`readlink '/usr/bin/R7Grafika'`" \
|
||||
!= '/etc/alternatives/R7Grafika' ]; then
|
||||
rm -f '/usr/bin/R7Grafika'
|
||||
fi
|
||||
update-alternatives --install '/usr/bin/R7Grafika' 'R7Grafika' '/opt/R7Grafika/R7Grafika' 100
|
||||
else
|
||||
ln -sf '/opt/R7Grafika/R7Grafika' '/usr/bin/R7Grafika'
|
||||
fi
|
||||
|
||||
# SUID chrome-sandbox for Electron 5+
|
||||
chmod 4755 '/opt/R7Grafika/chrome-sandbox' || die
|
||||
|
||||
xdg_mimeinfo_database_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if [ "${REPLACED_BY_VERSION}" = "" ]; then
|
||||
# Delete the link to the binary
|
||||
if type update-alternatives >/dev/null 2>&1; then
|
||||
update-alternatives --remove 'R7Grafika' '/usr/bin/R7Grafika'
|
||||
else
|
||||
rm -f '/usr/bin/R7Grafika'
|
||||
fi
|
||||
fi
|
||||
xdg_desktop_database_update
|
||||
}
|
Loading…
Reference in new issue