blob: 078894236795fee01f322ead70ef7c50250f374f (
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
|
# Maintainer: nroi <nroi@mailbox.org>
_appname='audiowarden'
pkgname="${_appname}-git"
pkgdesc="Skip spotify songs you don't like"
pkgver=0.1.1.r10.g0f3d12c
pkgrel=1
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/nroi/audiowarden'
license=('MIT')
makedepends=('cargo' 'git')
provides=("${_appname}")
conflicts=("${_appname}")
source=('git+https://github.com/nroi/audiowarden.git'
'audiowarden.service'
)
sha256sums=('SKIP'
'a8789704183f5bb551807fff056935c047ddf6c0a72eeb0047ee0ceb4777f3cb'
)
build() {
cd "${_appname}"
# To avoid the warning "Package contains reference to $srcdir"
export CARGO_BUILD_RUSTFLAGS="--remap-path-prefix $HOME=HOME"
cargo build --release
}
pkgver() {
cd "${srcdir}/${_appname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
install -Dm644 "${_appname}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${srcdir}/audiowarden.service" "${pkgdir}/usr/lib/systemd/user/audiowarden.service"
install -Dm755 "${_appname}/target/release/audiowarden" "$pkgdir/usr/bin/audiowarden"
}
|