Update srcpkgs/ayugram-desktop/template

update
This commit is contained in:
Wallenstein 2024-10-13 15:28:27 +03:00
parent 682213bebb
commit 5d2f7e979c

View file

@ -7,19 +7,18 @@ homepage="https://github.com/AyuGram/AyuGramDesktop"
short_desc="AyuGram binary package"
maintainer="Wallenstein <wallenstein@cringetech.net>"
license="GPL-3.0-or-later"
distfiles="https://ayugram.cringetech.net/"
distfiles="https://ayugram.cringetech.net/ayugram-desktop-${version}"
checksum="4840425c4f476cdf5a4558740fc0280297e365c7f02ad4dfd1feb2b79171b9cb"
do_install() {
# Распакуйте архив
wget ${XBPS_SRCDISTDIR}/ayugram-desktop-${version} -O ${DESTDIR}/usr/bin/ayugram-desktop
local url="https://ayugram.cringetech.net/ayugram-desktop-${version}"
local binfile="${DESTDIR}/usr/bin/ayugram-desktop"
# Установка прав на исполняемый файл
chmod 755 ${DESTDIR}/usr/bin/ayugram-desktop
wget -O ${binfile} ${url}
chmod 755 ${binfile}
# Создание .desktop файла
vinstall ayugram.desktop 644 usr/share/applications
# Копирование иконки
install -Dm644 ${FILESDIR}/ayuchan.png ${DESTDIR}/usr/share/icons/hicolor/256x256/apps/ayuchan.png
}