diff options
author | Frederik “Freso” S. Olesen | 2021-05-23 15:10:50 +0200 |
---|---|---|
committer | Frederik “Freso” S. Olesen | 2021-05-23 15:10:50 +0200 |
commit | 0b1a80e88710a563e1fdc6e70a050be12b472eb6 (patch) | |
tree | 6c46c06b5e6a416706b36439e05ac5a833178238 | |
parent | 9ba52e52df61f595cf23fbe52f9adc974cfbc519 (diff) | |
download | aur-0b1a80e88710a563e1fdc6e70a050be12b472eb6.tar.gz |
Switch package to use the python branch
'python' branch is currently the default branch on upstream’s GitHub:
https://github.com/berenm/steam-cli
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 23 insertions, 13 deletions
@@ -1,19 +1,23 @@ pkgbase = steam-cli-git - pkgver = 0.r27.b7583dc + pkgver = 0.r55.9bbea6c pkgrel = 1 url = https://github.com/berenm/steam-cli arch = any license = Unlicense makedepends = git - depends = bash - depends = steam - depends = jq - depends = expect - depends = libsecret - optdepends = wine + depends = python + depends = python-pexpect + depends = python-vdf + depends = python-xdg + depends = python-docopt + depends = python-requests + depends = python-dateutil + depends = python-aiohttp + depends = python-plyvel + optdepends = steam provides = steam-cli conflicts = steam-cli - source = git+https://github.com/berenm/steam-cli.git + source = git+https://github.com/berenm/steam-cli.git#branch=python sha512sums = SKIP pkgname = steam-cli-git @@ -1,18 +1,19 @@ # Maintainer: Frederik “Freso” S. Olesen <freso.dk@gmail.com> _pkgname=steam-cli pkgname=${_pkgname}-git -pkgver=0.r27.b7583dc +pkgver=0.r55.9bbea6c pkgrel=1 pkgdesc='' arch=('any') url='https://github.com/berenm/steam-cli' license=('Unlicense') -depends=('bash' 'steam' 'jq' 'expect' 'libsecret') +depends=('python' 'python-pexpect' 'python-vdf' 'python-xdg' 'python-docopt' + 'python-requests' 'python-dateutil' 'python-aiohttp' 'python-plyvel') makedepends=('git') -optdepends=('wine') +optdepends=('steam') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -source=("git+${url}.git") +source=("git+${url}.git#branch=python") sha512sums=('SKIP') pkgver() { @@ -20,9 +21,14 @@ pkgver() { printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +build() { + cd "${_pkgname}" + python setup.py build +} + package() { cd "${_pkgname}" - install -Dm755 bin/steam-cli "${pkgdir}/usr/bin/steam-cli" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -Dm644 README.rst "${pkgdir}/usr/share/doc/${_pkgname}/README.rst" install -Dm644 UNLICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/UNLICENSE" } |