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 }