mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Init release of sonicrust
This commit is contained in:
commit
5fa5c8a698
2 changed files with 85 additions and 0 deletions
29
.SRCINFO
Normal file
29
.SRCINFO
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
pkgbase = sonicrust
|
||||
pkgdesc = A rust base TUI subsonic client
|
||||
pkgver = 0.1.2
|
||||
pkgrel = 1
|
||||
url = https://github.com/roceb/sonicrust
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = GPL-3.0-only
|
||||
makedepends = rust
|
||||
makedepends = gcc
|
||||
makedepends = cmake
|
||||
makedepends = clang
|
||||
makedepends = perl
|
||||
makedepends = nasm
|
||||
makedepends = go
|
||||
makedepends = rust-bindgen
|
||||
makedepends = ninja
|
||||
depends = chafa
|
||||
depends = alsa-lib
|
||||
depends = glibc
|
||||
depends = gcc-libs
|
||||
provides = _binaryname
|
||||
conflicts = sonicrust-bin
|
||||
conflicts = sonicrust-git
|
||||
options = !strip
|
||||
source = https://github.com/roceb/sonicrust/archive/refs/tags/v0.1.2.tar.gz
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = sonicrust
|
||||
56
PKGBUILD
Normal file
56
PKGBUILD
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Maintainer: Ross Ceb aur@roceb.xyz
|
||||
pkgname=sonicrust
|
||||
_binaryname=sonicrust
|
||||
pkgver=0.1.2
|
||||
pkgrel=1
|
||||
pkgdesc="A rust base TUI subsonic client"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/roceb/sonicrust"
|
||||
license=('GPL-3.0-only')
|
||||
makedepends=('rust' 'gcc' 'cmake' 'clang' 'chafa' 'alsa-lib' 'glibc' 'rust-bindgen' 'gcc-libs' 'pkgconfig')
|
||||
depends=('chafa' 'alsa-lib' 'glibc' 'gcc-libs')
|
||||
provides=('_binaryname')
|
||||
options=(!strip)
|
||||
conflicts=('sonicrust-bin' 'sonicrust-git')
|
||||
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
# Force native toolchain
|
||||
export CC=gcc
|
||||
export CXX=g++
|
||||
export HOST_CC=gcc
|
||||
export HOST_CXX=g++
|
||||
|
||||
# AWS-LC build configuration
|
||||
export AWS_LC_SYS_CMAKE_BUILDER=1
|
||||
export AWS_LC_SYS_STATIC=1
|
||||
|
||||
# Override Rust's linker selection
|
||||
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=gcc
|
||||
|
||||
# Clean any cached cross-compile artifacts
|
||||
cargo clean
|
||||
cargo build --release
|
||||
}
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/usr/bin
|
||||
mkdir -p "$pkgdir"/usr/share/applications
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
# Create desktop file
|
||||
cat > "$pkgdir"/usr/share/applications/"$_binaryname".desktop << EOF
|
||||
[Desktop Entry]
|
||||
Name=Sonicrust
|
||||
Comment=${pkgdesc}
|
||||
Exec=/usr/bin/"$_binaryname" %u
|
||||
Terminal=true
|
||||
Type=Application
|
||||
Icon=${_binaryname}
|
||||
Categories=AudioVideo;Audio;Player;ConsoleOnly
|
||||
Keywords=music;player
|
||||
EOF
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue