add all project files
This commit is contained in:
29
PKGBUILD
Normal file
29
PKGBUILD
Normal file
@@ -0,0 +1,29 @@
|
||||
pkgname=lunar-code
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Lunar Code - A lightweight code editor"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/luna/lunar-code"
|
||||
license=('MIT')
|
||||
depends=('webkit2gtk-4.1' 'gtk3' 'cairo' 'glib2' 'hicolor-icon-theme')
|
||||
provides=('lunar-code')
|
||||
|
||||
package() {
|
||||
install -Dm755 "${srcdir}/../src-tauri/target/release/lunar-code" "${pkgdir}/usr/bin/lunar-code"
|
||||
|
||||
install -Dm644 /dev/stdin "${pkgdir}/usr/share/applications/lunar-code.desktop" << 'EOF'
|
||||
[Desktop Entry]
|
||||
Name=Lunar Code
|
||||
Comment=A lightweight code editor
|
||||
Exec=lunar-code %F
|
||||
Icon=lunar-code
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Development;TextEditor;IDE;
|
||||
Keywords=code;editor;programming;
|
||||
MimeType=text/plain;text/x-csrc;text/x-c++src;text/x-java;text/x-python;text/javascript;application/json;text/html;text/css;text/xml;text/x-rust;
|
||||
EOF
|
||||
|
||||
# Use a generic icon for now
|
||||
install -Dm644 /dev/stdin "${pkgdir}/usr/share/icons/hicolor/256x256/apps/lunar-code.png" < "${srcdir}/../src-tauri/icons/128x128@2x.png" 2>/dev/null || true
|
||||
}
|
||||
Reference in New Issue
Block a user