summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0caf57e32fae0d0dac1b890c0549ebab5b502ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: earthintruders <<earthintruders at tutanota dot de>>
pkgname=qobuz-player-git
pkgver=v0.2.9.5.r0.g41b5698
pkgrel=1
pkgdesc="High resolution audio player backed by Qobuz"
arch=('x86_64')
url="https://github.com/SofusA/qobuz-player"
license=('GPL-3')
conflicts=('qobuz-player')
depends=(gstreamer)
makedepends=(cargo)
source=("qobuz-player-git::git+https://github.com/SofusA/qobuz-player.git")
sha256sums=('SKIP')
options=('!lto')

pkgver() {
  cd "$pkgname"
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd ${pkgname}
    export RUSTUP_TOOLCHAIN=stable
    cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
    
}

build() {
    cd ${pkgname}
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    #refuses to work with clang
    export CC=gcc
    export CXX=g++
    cargo build --frozen --release --all-features

  
}

package() {
    cd ${pkgname}
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/qobuz-player"
}