blob: 167ed83587155c3e1f4548487fbb1dc0a8aa0548 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=steamback-git
pkgver=1.0.0.r25.gba41859
pkgrel=1
pkgdesc="Add versioned save-game snapshots to Steam-cloud enabled games."
arch=('x86_64')
url="https://github.com/geeksville/steamback"
license=('GPL-3.0-or-later')
depends=(
'python-async-tkinter-loop'
'python-pillow'
'python-platformdirs'
'python-psutil'
'python-sv-ttk'
'python-timeago'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-poetry-core'
'python-wheel'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/geeksville/steamback.git'
"${pkgname%-git}.desktop")
sha256sums=('SKIP'
'8331fcc39c1d80640cb314db5acd47cad1df35278279b75001e99c844df6bd51')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname%-git}"
GIT_DIR='.' python -m build --wheel --no-isolation
}
package() {
cd "${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "defaults/py_modules/${pkgname%-git}/data/icons8-refresh-96.png" \
"$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
install -Dm644 "$srcdir/${pkgname%-git}.desktop" -t "$pkgdir/usr/share/applications/"
}
|