init
This commit is contained in:
44
PKGBUILD
Normal file
44
PKGBUILD
Normal file
@@ -0,0 +1,44 @@
|
||||
# Maintainer: narl <narl@narl.io>
|
||||
pkgname=syspulse-rs
|
||||
_pkgname=syspulse
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="A professional Linux system profiler for Wayland"
|
||||
arch=('x86_64')
|
||||
url="https://git.narl.io/nvrl/SysPulse-rs"
|
||||
license=('MIT')
|
||||
depends=('webkit2gtk-4.1' 'gtk3' 'libayatana-appindicator' 'librsvg')
|
||||
makedepends=('nodejs' 'npm' 'rust' 'cargo')
|
||||
source=("git+ssh://git@narl.io/nvrl/SysPulse-rs.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
npm install
|
||||
npm run build
|
||||
npm run tauri build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
|
||||
# Install binary
|
||||
install -Dm755 "src-tauri/target/release/$_pkgname-rs" "$pkgdir/usr/bin/$_pkgname"
|
||||
|
||||
# Install icons
|
||||
install -Dm644 "src-tauri/icons/128x128.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/$_pkgname.png"
|
||||
install -Dm644 "src-tauri/icons/32x32.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/$_pkgname.png"
|
||||
|
||||
# Create desktop file
|
||||
mkdir -p "$pkgdir/usr/share/applications"
|
||||
cat > "$pkgdir/usr/share/applications/$_pkgname.desktop" <<EOF
|
||||
[Desktop Entry]
|
||||
Name=SysPulse
|
||||
Comment=Professional System Profiler
|
||||
Exec=/usr/bin/$_pkgname
|
||||
Icon=$_pkgname
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=System;Monitor;
|
||||
EOF
|
||||
}
|
||||
Reference in New Issue
Block a user