From a41e76018e8368339db49777547389f3d3e11420 Mon Sep 17 00:00:00 2001 From: Wallenstein Date: Sun, 13 Oct 2024 18:48:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20ayugra.?= =?UTF-8?q?=D1=8Edesktop=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ => files}/ayugram.desktop | 0 srcpkgs/ayugram-desktop/template | 24 +++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) rename srcpkgs/ayugram-desktop/{ => files}/ayugram.desktop (100%) diff --git a/srcpkgs/ayugram-desktop/ayugram.desktop b/srcpkgs/ayugram-desktop/files/ayugram.desktop similarity index 100% rename from srcpkgs/ayugram-desktop/ayugram.desktop rename to srcpkgs/ayugram-desktop/files/ayugram.desktop diff --git a/srcpkgs/ayugram-desktop/template b/srcpkgs/ayugram-desktop/template index 5a53716..06d0d52 100644 --- a/srcpkgs/ayugram-desktop/template +++ b/srcpkgs/ayugram-desktop/template @@ -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 " 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 }