# Maintainer: creations pkgname=navithingy-git pkgver=0.2.0.r24.18300ce pkgrel=1 pkgdesc="A Navidrome client built with Tauri and Svelte." arch=('x86_64') url="https://github.com/vMohammad24/NaviThingy" license=('MIT') depends=('nodejs' 'npm' 'gtk3' 'gstreamer' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly') makedepends=('git' 'nodejs' 'npm' 'rustup' 'pkg-config' 'clang' 'lld' 'webkit2gtk-4.1' 'openssl' 'openssl-1.1' 'glib2' 'zlib' 'patchelf') optdepends=( "libappindicator-gtk3: System tray support" "gst-plugin-pipewire: Required for PipeWire-based audio playback" ) source=("git+https://github.com/vMohammad24/NaviThingy.git") sha256sums=('SKIP') install="$pkgname.install" provides=('navithingy') conflicts=('navithingy') pkgver() { cd "$srcdir/NaviThingy" local tag rev commit tag=$(git describe --tags --abbrev=0 | sed 's/^NaviThingy//' | tr -d 'v') rev=$(git rev-list --count HEAD) commit=$(git rev-parse --short HEAD) echo "${tag}.r${rev}.${commit}" } prepare() { cd "$srcdir/NaviThingy" rustup default stable rustup update stable rustup target add x86_64-unknown-linux-gnu npm install } build() { cd "$srcdir/NaviThingy" export RUSTFLAGS="-C link-arg=-fuse-ld=lld" export CC=clang export CXX=clang++ npm run build npm run tauri build -- --no-bundle } package() { cd "$srcdir/NaviThingy" install -d "$pkgdir/usr/bin" install -d "$pkgdir/usr/share/applications" install -d "$pkgdir/usr/share/icons/hicolor" install -m755 "src-tauri/target/release/navithingy" "$pkgdir/usr/bin/" cat > "$pkgdir/usr/share/applications/navithingy.desktop" <