blob: 33718df1b7130010f4f4b4c5edc579360ce71dc7 (
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
42
43
|
# Maintainer Lingfeng Ren <lastname+firstname+8thfibonaccinumber@gmail.com>
pkgname=fetchcord-git
pkgver=r692.071ba37
pkgrel=1
pkgdesc="FetchCord grabs your OS info and displays it as Discord Rich Presence"
arch=('any')
url="https://github.com/MrPotatoBobx/fetchcord"
license=('MIT')
makedepends=('git')
provides=('fetchcord')
depends=('python-pypresence' 'neofetch' 'python-psutil' 'python-setuptools')
conflicts=('fetchcord')
source=("fetchcord::git+$url#branch=master")
sha256sums=('SKIP')
install=fetchcord.install
pkgver() {
cd "$srcdir/fetchcord"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/fetchcord"
python setup.py build
}
package() {
cd "$srcdir/fetchcord"
python setup.py install --root="$pkgdir" --optimize=1
systemddir="/usr/lib/systemd/user"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
if [ -e "$systemddir/fetchcord.service" ]; then
echo "Not overwriting existing fetchcord.service" && install -Dm644 "$systemddir/fetchcord.service" "$pkgdir$systemddir/fetchcord.service";
else
install -Dm644 systemd/fetchcord.service "$pkgdir$systemddir/fetchcord.service";
fi
}
|