summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b60b79a230a55ac58995ac6bbe1c34ee39f39599 (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
# Maintainer: Shayne Hartford <shayneehartford@gmail.com>

_pkgname=SteamAccountSwitcher
pkgname=steamaccountswitcher-git
pkgver=r9.0e3fc48
pkgrel=2
pkgdesc="Qt 5/6 Steam account switcher for linux"
arch=("any")
url="https://github.com/ShayBox/${_pkgname}"
license=("MIT")
depends=(
    "steam"
    "python-qtpy"
)
makedepends=(
    "git"
    "python-pip"
    "python-poetry"
)
optdepends=(
    "python-pyqt5: Qt5"
    "python-pyqt6: Qt6"
)
source=(
    "git+${url}.git"
)
sha512sums=(
    "SKIP"
)

pkgver() {
    cd "${srcdir}/${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${_pkgname}"
    poetry build --format wheel
}

package() {
    cd "${srcdir}/${_pkgname}"
    install -Dm644 "data/share/applications/steamswitcher.desktop" "${pkgdir}/usr/share/applications/steamswitcher.desktop"
    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
}