blob: 9807b6b84bb46407b42e0f8e603b106adf861616 (
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
|
# Maintainer: Jonathan Grotelüschen <tippfehlr@archlinux.org>
pkgname=aw-watcher-media-player
pkgver=1.1.4
pkgrel=1
pkgdesc="Watcher of system's currently playing media for ActivityWatch"
arch=('x86_64')
url="https://github.com/2e3s/aw-watcher-media-player"
license=('Unlicense')
depends=('activitywatch' 'dbus' 'openssl')
makedepends=('git' 'cargo')
source=("git+$url#tag=v$pkgver")
sha256sums=('1e8a2a6572d7b4c649ec045d21e96a0152b892041b464a855f10fe36755225cb')
prepare() {
cd $pkgname
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target host-tuple
}
build() {
cd $pkgname
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd $pkgname
install -Dm755 target/release/aw-watcher-media-player -t "$pkgdir/usr/bin/"
install -Dm644 visualization/index.html -t "$pkgdir/usr/share/$pkgname/visualization/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|