blob: f6b850d5666a87808259f949bb903ba560aaaf9c (
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
|
# Maintainer: tippfehlr <tippfehlr at tippfehlr dot eu>
pkgname='aw-watcher-media-player'
pkgver=1.1.0
pkgrel=2
pkgdesc="Watcher of system's currently playing media for ActivityWatch"
arch=('x86_64')
url="https://github.com/2e3s/$pkgname"
license=('Unlicense')
depends=('activitywatch' 'dbus' 'glibc' 'gcc-libs' 'openssl')
makedepends=('git' 'cargo')
conflicts=("$pkgname")
source=(
"git+$url#tag=v$pkgver"
"$pkgname-$pkgver-time-not-compiling.patch::https://patch-diff.githubusercontent.com/raw/2e3s/aw-watcher-media-player/pull/6.patch?full_index=1"
)
sha512sums=('a15f7b1941534e3e15593b7baef4ac7a99fc52b6fb5d240f604d18f27f33e48b83a4b2f9fb7c904cbd5dbcda8ac7a24493c4d378bdcb7648e2d7d49530908595'
'85e9be3811488b07a43681baca4889038670363f4d8ccfa3be5cd4286ca90cfa5df9e82984fd8e2e7ebfa1ff07f6735f200127f8cce9b0402164387ec9fba0bc')
prepare() {
cd "$srcdir/$pkgname"
patch -Np1 -i "../$pkgname-$pkgver-time-not-compiling.patch"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd "$srcdir/$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/"
}
|