blob: fcc5110b88ee1d02bc85591fa566b31d054b6c5b (
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
|
# Maintainer: trickybestia <trickybestia@gmail.com>
pkgname=linux-discord-rich-presence
pkgver=3.2.0
pkgrel=1
pkgdesc="Customizable Discord Rich Presence client for Linux"
arch=(x86_64)
url=https://github.com/trickybestia/linux-discord-rich-presence
license=(GPL3)
makedepends=(cargo)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=(2974140d145c454b3d10df346022856a327a37ff696c16619ecf37b9bcbd8ab9)
prepare() {
cd "$srcdir/$pkgname-$pkgver"
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build () {
cd "$srcdir/$pkgname-$pkgver"
cargo build --release --frozen
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "./target/release/linux-discord-rich-presence"
install -Dm0755 -t "$pkgdir/usr/bin/" "./doc/linux-discord-rich-presence-desktop-wrapper"
install -Dm0644 -t "$pkgdir/usr/share/applications/" "./doc/linux-discord-rich-presence.desktop"
install -Dm0644 -t "$pkgdir/usr/share/applications/" "./doc/linux-discord-rich-presence-minimized.desktop"
}
|