blob: 059f68dc5400d0a6be23ed8a9037ac0315ec4c5e (
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
|
# Maintainer: Martin Reboredo <yakoyoku@gmail.com>
pkgname=heroic-gogdl
_basever=0.7.2
pkgver=0.7.2
pkgrel=1
_ver_commit=d7f29dfef5818e8b323d04761e18a9abb750f93e
_cur_commit=d7f29dfef5818e8b323d04761e18a9abb750f93e
pkgdesc="GOG Downloading module for Heroic Games Launcher"
arch=('any')
url="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
license=('GPL3')
depends=('python-requests')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'git')
source=("git+$url#commit=$_cur_commit")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
revset=$(git rev-list --count $_ver_commit..$_cur_commit)
if [ $revset -gt 0 ]; then
echo "$_basever+r$revset"
else
echo "$_basever"
fi
}
build() {
cd "$srcdir/$pkgname"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "$srcdir/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|