# Maintainer: creations pkgname=navithingy-git pkgver=0.2.0 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') source=("git+https://github.com/vMohammad24/NaviThingy.git") sha256sums=('SKIP') install="$pkgname.install" pkgver() { cd "$srcdir/NaviThingy" git describe --tags --abbrev=0 | sed 's/^NaviThingy//' } 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/${pkgname}" "$pkgdir/usr/bin/" cat > "$pkgdir/usr/share/applications/navithingy.desktop" <