summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 013aa482ae619b536479042a664db2486c6a45b5 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Maintainer: xtexecute <none@none>

pkgname=fleshfetch
pkgver=1.3.2
pkgrel=1
pkgdesc="Very early development clicker game based on GTK4, written in Python with modding support. This is a complete joke, if you couldn't tell."
arch=('any')
url="https://github.com/xtexecute/fleshfetch"
license=('MIT')

depends=(
    'python'
    'python-gobject'
    'gtk4'
    'python-requests'
    'python-pygame'
)

optdepends=(
    'python-pypresence: Discord Rich Presence support'
    'libpulse: paplay fallback sound playback'
    'alsa-utils: aplay fallback sound playback'
)

makedepends=('git')

source=(
    "$pkgname::git+https://github.com/xtexecute/fleshfetch.git#branch=main"
)

sha256sums=('SKIP')

package() {
    cd "$srcdir/$pkgname"

    # Main app modules
    install -d "$pkgdir/usr/share/fleshfetch"
    install -m644 \
        bootstrap.py \
        console_capture.py \
        defaults.py \
        fleshfetch.py \
        leaderboard.py \
        main.py \
        mod_api.py \
        paths.py \
        rpc.py \
        save_manager.py \
        security.py \
        ui.py \
        "$pkgdir/usr/share/fleshfetch/"

    # System-wide mods folder
    install -d "$pkgdir/usr/share/fleshfetch/mods"

    # Launcher
    install -d "$pkgdir/usr/bin"
    cat > "$pkgdir/usr/bin/fleshfetch" <<'EOF'
#!/bin/sh
exec /usr/bin/python /usr/share/fleshfetch/main.py "$@"
EOF
    chmod 755 "$pkgdir/usr/bin/fleshfetch"

    # Assets
    install -d "$pkgdir/usr/share/fleshfetch/assets"
    install -m644 flesh.png click.wav "$pkgdir/usr/share/fleshfetch/assets/"

    # App icon
    install -Dm644 flesh.png \
        "$pkgdir/usr/share/icons/hicolor/256x256/apps/dev.xtexecute.fleshfetch.png"

    # Desktop entry
    install -Dm644 dev.xtexecute.fleshfetch.desktop \
        "$pkgdir/usr/share/applications/dev.xtexecute.fleshfetch.desktop"

    # License
    install -Dm644 LICENSE \
        "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}