summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a525d6b953936ba350762be641cd9fc0ef02e6d6 (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
# Maintainer: Pingax <pingax@proton.me>

pkgname=geode-gem
_pkgname=geode_gem
pkgver=0.12.0
pkgrel=1
pkgdesc="GTK+ Graphical User Interface (GUI) for GNU/Linux which allows you to easily manage your emulators and games collection."
arch=('x86_64')
license=('GPL3')
depends=('python-gobject' 'python-pyxdg')
makedepends=('python-build' 'python-installer' 'python-wheel')
url="https://geode.kawateam.dev/"
source=(https://archives.kawateam.dev/geode-gem/geode_gem-0.12.0.tar.gz)
sha256sums=('3145b1da96e2f77fc93d646f44e4d541a0bf518bb8efc3fb9dabf8d88e65d61a')

build() {
    cd ${_pkgname}-${pkgver}
    python -m build --wheel --no-isolation
}

package() {
    cd ${_pkgname}-${pkgver}
    python -m installer --destdir="$pkgdir" dist/*.whl

    install -Dm 644 ${_pkgname}/data/desktop/gem.svg "${pkgdir}/usr/share/pixmaps/gem.svg"
    install -Dm 644 ${_pkgname}/data/desktop/gem.desktop "${pkgdir}/usr/share/applications/gem.desktop"

    install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
    install -Dm 644 ${_pkgname}/data/docs/LICENSE.emulators.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.emulators.md
}