From 6866246513424a9622ae34395c2b2a2d3a822dc6 Mon Sep 17 00:00:00 2001 From: Kritthapath Yaviraj Date: Sun, 2 Aug 2026 03:01:21 +0700 Subject: [PATCH] fix: icon issues Signed-off-by: Kritthapath Yaviraj --- PKGBUILD | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 904c397..d826b4b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -16,18 +16,19 @@ source_x86_64=("${pkgname}-${pkgver}-${arch}.tar.gz::${url}/releases/download/v$ sha256sums_x86_64=('f76ef62ab381931081f50f8ca8f13bc1cf27d3cd38b46d29b0c6fd7dd2dfa800') package() { - cd "${srcdir}/${_pkgname}-${pkgver}-${arch}" + cd "${srcdir}/${_pkgname}-${pkgver}-${arch}_linux" - # Install executable binary + # Install binary install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" # Install desktop entry install -Dm644 "dev.linegtk.LineGtk.desktop" "${pkgdir}/usr/share/applications/dev.linegtk.LineGtk.desktop" - # Install application icons - if [[ -d "assets/icons/hicolor" ]]; then - cp -dr --no-preserve=ownership "assets/icons/hicolor/"* "${pkgdir}/usr/share/icons/hicolor/" - elif [[ -d "assets/icons" ]]; then - cp -dr --no-preserve=ownership "assets/icons/"* "${pkgdir}/usr/share/icons/hicolor/" + # Create the icons directory first + install -d "${pkgdir}/usr/share/icons" + + # Copy icon contents into /usr/share/icons/ + if [[ -d "assets/icons" ]]; then + cp -dr --no-preserve=ownership assets/icons/* "${pkgdir}/usr/share/icons/" fi } \ No newline at end of file