summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2088caedd65abeb7afe64ed0ad28efcdee2ada82 (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
# Maintainer: anispwyn <anisphia_wynn_palettia@proton.me>

pkgname=sleepy-launcher-bin
pkgver=1.3.0
pkgrel=1
pkgdesc="Sleepy game launcher for Linux with telemetry disabling"
url="https://github.com/an-anime-team/sleepy-launcher"
conflicts=("sleepy-launcher-git")
provides=("sleepy-launcher-bin")
arch=("x86_64")
license=("GPL3")

depends=(
    "libadwaita"
    "xdg-desktop-portal"
    "libwebp"
    "p7zip"
    "git"
    "gtk4"
    "glibc"
)

optdepends=(
    "mangohud: FPS Hud/GUI"
    "gamemode: Game Optimizations"
    "gamescope: a tool from Valve that allows for games to run in an isolated Xwayland instance"
)

source=(
    "sleepy-launcher_${pkgver}::https://github.com/an-anime-team/sleepy-launcher/releases/download/${pkgver}/sleepy-launcher"
    "icon.png"
    "sleepy-launcher.desktop"
)

md5sums=('7ca43cdfb5121c61366e2787e0161727'
         '808f0ccaac7bac70b56e400760f0b764'
         'a039b4bdbc28710d8784c84e2da16785')

prepare() {
    chmod +x "${srcdir}/sleepy-launcher_${pkgver}"
}

package() {
    install -dm755 "${pkgdir}/usr/lib/${pkgname}"
    install -dm755 "${pkgdir}/usr/bin/"
    cp sleepy-launcher_${pkgver} "${pkgdir}/usr/lib/${pkgname}/"

    install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/pixmaps/sleepy-launcher.png"
    ln -s "/usr/lib/${pkgname}/sleepy-launcher_${pkgver}" "${pkgdir}/usr/bin/sleepy-launcher"
    install -Dm644 "${srcdir}/sleepy-launcher.desktop" -t "${pkgdir}/usr/share/applications"
    install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/icons/moe.launcher.sleepy-launcher.png"
}