# Maintainer: Martin Reboredo 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 }