mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Updated to version 0.1.4 added playlist
This commit is contained in:
commit
10ed1c0924
2 changed files with 79 additions and 0 deletions
28
.SRCINFO
Normal file
28
.SRCINFO
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
pkgbase = sonicrust-git
|
||||
pkgdesc = A Terminal based music player for Subsonic-compatible servers, written in Rust.
|
||||
pkgver = 0.1.4.r1.g400d73c
|
||||
pkgrel = 1
|
||||
url = https://github.com/roceb/sonicrust
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = GPL-3.0-only
|
||||
makedepends = git
|
||||
makedepends = rust
|
||||
makedepends = cmake
|
||||
makedepends = clang
|
||||
makedepends = perl
|
||||
makedepends = pkgconf
|
||||
makedepends = nasm
|
||||
depends = chafa
|
||||
depends = glibc
|
||||
depends = alsa-lib
|
||||
depends = openssl
|
||||
depends = gcc-libs
|
||||
provides = sonicrust
|
||||
conflicts = sonicrust-bin
|
||||
conflicts = sonicrust
|
||||
options = strip
|
||||
source = sonicrust-git::git+https://github.com/roceb/sonicrust.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = sonicrust-git
|
||||
51
PKGBUILD
Normal file
51
PKGBUILD
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# Maintainer: Ross Ceb aur@roceb.xyz
|
||||
pkgname=sonicrust-git
|
||||
_binaryname=sonicrust
|
||||
pkgver=0.1.4.r1.g400d73c
|
||||
pkgrel=1
|
||||
pkgdesc="A Terminal based music player for Subsonic-compatible servers, written in Rust."
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/roceb/sonicrust"
|
||||
license=('GPL-3.0-only')
|
||||
makedepends=('git' 'rust' 'cmake' 'clang' 'perl' 'pkgconf' 'nasm' )
|
||||
depends=('chafa' 'glibc' 'alsa-lib' 'openssl' 'gcc-libs')
|
||||
provides=("$_binaryname")
|
||||
options=(strip)
|
||||
conflicts=('sonicrust-bin' 'sonicrust')
|
||||
source=("$pkgname"::git+"${url}".git)
|
||||
sha256sums=('SKIP')
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
|
||||
_tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9\.]+$' | head -n1)
|
||||
_rev=$(git rev-list --count $_tag..HEAD)
|
||||
_hash=$(git rev-parse --short HEAD)
|
||||
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
|
||||
}
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
cargo fetch --target "$CARCH-unknown-linux-gnu"
|
||||
}
|
||||
build() {
|
||||
cd "$srcdir/$pkgname" || return 1
|
||||
cargo build --release --locked
|
||||
}
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/usr/share/applications
|
||||
cd "$pkgname"
|
||||
install -Dm755 "target/release/$_binaryname" "$pkgdir/usr/bin/$_binaryname"
|
||||
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