31 lines
971 B
Bash
31 lines
971 B
Bash
# Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com>
|
|
|
|
pkgname=discord-game-presence
|
|
pkgver=0.1
|
|
pkgrel=1
|
|
pkgdesc='Show running games in a sandboxed Discord as Rich Presence'
|
|
arch=('any')
|
|
url="https://git.shouldnt.work/fuxino/$pkgname"
|
|
license=('GPL-3.0-or-later')
|
|
depends=('python')
|
|
makedepends=('git')
|
|
checkdepends=('python-pytest')
|
|
source=("git+$url?signed#tag=$pkgver")
|
|
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
|
|
sha256sums=('902f970ee1521e6bb7ca5bec0eb6057f476772b08f76eb23af83ede3f5807cb3')
|
|
|
|
check()
|
|
{
|
|
cd "$srcdir"/"$pkgname"
|
|
python -m pytest -p no:cacheprovider
|
|
}
|
|
|
|
package()
|
|
{
|
|
cd "$srcdir"/"$pkgname"
|
|
install -Dm755 discord_game_presence.py "$pkgdir"/usr/bin/"$pkgname"
|
|
install -Dm644 "$pkgname".service "$pkgdir"/usr/lib/systemd/user/"$pkgname".service
|
|
install -Dm644 README.md "$pkgdir"/usr/share/doc/"$pkgname"/README.md
|
|
install -Dm644 config.example.toml "$pkgdir"/usr/share/doc/"$pkgname"/config.example.toml
|
|
}
|