blob: 5a2742670e7d9e93763b0c55d7f9958169e6bf5e (
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
|
# Maintainer: nroi <nroi@mailbox.org>
pkgname=audiowarden
pkgver=0.1.2
pkgrel=1
epoch=
pkgdesc="Skip spotify songs you don't like"
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/nroi/audiowarden"
license=('MIT')
makedepends=(cargo)
depends=()
provides=('audiowarden')
conflicts=('audiowarden')
source=('audiowarden.service'
"https://github.com/nroi/audiowarden/archive/refs/tags/${pkgver}.tar.gz"
)
sha256sums=('a8789704183f5bb551807fff056935c047ddf6c0a72eeb0047ee0ceb4777f3cb'
'b4c320ff2cda8a12ee40bb89a0c4dc66bf8200bd20f88c2517d04daf8c123c67'
)
prepare() {
cd "${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|