Исправлено размещение файла ayugra.юdesktop

Исправлена сборка пакета
This commit is contained in:
Wallenstein 2024-10-13 18:48:04 +03:00
parent a0b8a7e147
commit a41e76018e
2 changed files with 14 additions and 10 deletions

View file

@ -2,24 +2,28 @@ pkgname=ayugram-desktop
version=5.4.1
revision=1
archs="x86_64"
wrksrc=""
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/ayugram-desktop-${version}"
checksum="4840425c4f476cdf5a4558740fc0280297e365c7f02ad4dfd1feb2b79171b9cb"
distfiles="https://ayugram.cringetech.net/ayugram-desktop-${version}.tar.xz"
checksum="f58498d79c008faa305eaab393fe241592d8547ecc2420f8ab68316eae9c743d"
do_install() {
local binfile="${DESTDIR}/usr/bin/ayugram-desktop"
local srcdir="${wrksrc}"
local bindir="${DESTDIR}/usr/bin"
local desktopdir="${DESTDIR}/usr/share/applications"
local icondir="${DESTDIR}/usr/share/icons/hicolor/256x256/apps"
cp ${wrksrc} ${binfile}
mkdir -p "$bindir" "$desktopdir" "$icondir"
chmod 755 ${binfile}
install -Dm755 "${srcdir}/ayugram-desktop" "${bindir}/ayugram-desktop"
mkdir -p ${DESTDIR}/usr/share/applications
vinstall ayugram.desktop 644 usr/share/applications
install -Dm644 "${FILESDIR}/ayugram.desktop" "${desktopdir}/ayugram.desktop"
# Install the application icon
install -Dm644 "${FILESDIR}/ayuchan.png" "${icondir}/ayuchan.png"
mkdir -p ${DESTDIR}/usr/share/icons/hicolor/256x256/apps
install -Dm644 ${FILESDIR}/ayuchan.png ${DESTDIR}/usr/share/icons/hicolor/256x256/apps/ayuchan.png
}