diff options
author | Frederik “Freso” S. Olesen | 2021-05-23 15:13:21 +0200 |
---|---|---|
committer | Frederik “Freso” S. Olesen | 2021-05-23 15:13:21 +0200 |
commit | 786ed0ba7ef767da3a5765ad619899763794e4b8 (patch) | |
tree | 0dd2704d77d483e8c143ec6a1870acfff8aa67de /PKGBUILD | |
parent | 0b1a80e88710a563e1fdc6e70a050be12b472eb6 (diff) | |
download | aur-steam-cli-git.tar.gz |
Run PKGBUILD through shellharden
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,6 +1,6 @@ # Maintainer: Frederik “Freso” S. Olesen <freso.dk@gmail.com> _pkgname=steam-cli -pkgname=${_pkgname}-git +pkgname=$_pkgname-git pkgver=0.r55.9bbea6c pkgrel=1 pkgdesc='' @@ -13,22 +13,22 @@ makedepends=('git') optdepends=('steam') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -source=("git+${url}.git#branch=python") +source=("git+$url.git#branch=python") sha512sums=('SKIP') pkgver() { - cd "${_pkgname}" + cd "$_pkgname" printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "${_pkgname}" + cd "$_pkgname" python setup.py build } package() { - cd "${_pkgname}" + cd "$_pkgname" 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" + install -Dm644 README.rst "$pkgdir/usr/share/doc/$_pkgname/README.rst" + install -Dm644 UNLICENSE "$pkgdir/usr/share/licenses/$_pkgname/UNLICENSE" } |