blob: d163ac424b8469dcab0e02b4d096896e169c2884 (
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: claymorwan <claymorwan@proton.me> <claymorw@gmail.com>
_sourceName="ElisaRPC"
_exeName="elisa_rpc"
pkgname=elisarpc-git
pkgver=0.1.0
pkgrel=1
pkgdesc="A Discord rich presence client for Elisa the music player by KDE. Made by renarin-kholin."
arch=("x86_64")
url="https://github.com/renarin-kholin/ElisaRPC"
source=("git+${url}")
sha256sums=('SKIP')
license=("MIT")
depends=("playerctl")
makedepends=("git" "cargo")
conflicts=("$_sourceName")
provides=("$_sourceName")
build() {
cd "$_sourceName"
cargo build --release
chmod +x ./target/release/elisa_rpc
}
package() {
install -Dm644 "$_sourceName/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 "$_sourceName/target/release/$_exeName" -t "$pkgdir/usr/bin"
install -Dm0644 /dev/stdin "$pkgdir/usr/share/applications/$_sourceName.desktop" << EOF
[Desktop Entry]
Name=${_sourceName}
Exec=/usr/bin/${_exeName}
Terminal=false
X-Autostart-enabled=true
EOF
}
|