Files
syspulse-rs-git/PKGBUILD

45 lines
1.2 KiB
Bash

# 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+https://git.narl.io/nvrl/syspulse-rs.git")
sha256sums=('SKIP')
build() {
cd "$pkgname"
npm install
npm run build
npm run tauri build -- --no-bundle
}
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
}