fix: forgot to bundle protocol with line-gtk
Signed-off-by: Kritthapath Yaviraj <[email protected]>
This commit is contained in:
@@ -16,18 +16,22 @@ 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 binary
|
||||
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
|
||||
# Install binary and sidecar protocol folder into /usr/lib/line-gtk/
|
||||
install -Dm755 "${_pkgname}" "${pkgdir}/usr/lib/${_pkgname}/${_pkgname}"
|
||||
if [[ -d "protocol" ]]; then
|
||||
cp -dr --no-preserve=ownership protocol "${pkgdir}/usr/lib/${_pkgname}/"
|
||||
fi
|
||||
|
||||
# Symlink executable into /usr/bin/
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
ln -s "/usr/lib/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
|
||||
|
||||
# Install desktop entry
|
||||
install -Dm644 "dev.linegtk.LineGtk.desktop" "${pkgdir}/usr/share/applications/dev.linegtk.LineGtk.desktop"
|
||||
|
||||
# Create the icons directory first
|
||||
install -d "${pkgdir}/usr/share/icons"
|
||||
|
||||
# Copy icon contents into /usr/share/icons/
|
||||
# Install application icons
|
||||
if [[ -d "assets/icons" ]]; then
|
||||
cp -dr --no-preserve=ownership assets/icons/* "${pkgdir}/usr/share/icons/"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user