blob: 2cdb05e6b4a895e9fedc5985726471db895b8d11 (
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
|
# Maintainer: szoltysek <karolszoltysek.ti@gmail.com>
pkgname=fossglaze-git
pkgver=1.0.r4.g97aef0f
pkgrel=1
pkgdesc="Rub your Linux distro into every Discord user's face via Discord RPC"
arch=('any')
url="https://github.com/szoltysek/fossglaze"
license=('GPL3')
depends=('python' 'python-pypresence')
makedepends=('git')
provides=('fossglaze')
conflicts=('fossglaze')
source=("git+${url}#branch=main")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/fossglaze"
# Generate version string like: 1.0.rXX.gabcdef
printf "1.0.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/fossglaze"
# Install the Python script as an executable
install -Dm755 fossglaze.py "$pkgdir/usr/bin/fossglaze"
# Install documentation and license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|